Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009855/0.009855, allocations: 169 kB / 15.11 MB, free: 5.977 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8303/0.8303, allocations: 135.2 MB / 151 MB, free: 13.82 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 223.2 MB / 406.8 MB, free: 3.223 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000977/0.0009769, allocations: 96.94 kB / 489.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003142/0.0003144, allocations: 8 kB / 0.5692 GB, free: 14.04 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.418/0.4184, allocations: 82.31 MB / 0.6495 GB, free: 36.09 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.568, allocations: 113.2 MB / 0.7601 GB, free: 2.699 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002149/0.5683, allocations: 75.95 kB / 0.7602 GB, free: 2.625 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009349/0.5777, allocations: 3.523 MB / 0.7636 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.144e-06/0.5777, allocations: 224 / 0.7636 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.8e-05/0.5777, allocations: 11.94 kB / 0.7636 GB, free: 15.08 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006178/0.5783, allocations: 471.1 kB / 0.7641 GB, free: 14.57 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.5784, allocations: 12.03 kB / 0.7641 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.602e-05/0.5784, allocations: 42.55 kB / 0.7641 GB, free: 14.51 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.396e-05/0.5785, allocations: 19.81 kB / 0.7642 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.5788, allocations: 230.6 kB / 0.7644 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.5788, allocations: 8 kB / 0.7644 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.795e-05/0.5788, allocations: 12 kB / 0.7644 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002814/0.5791, allocations: 145.9 kB / 0.7645 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.5791, allocations: 4 kB / 0.7645 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.5792, allocations: 4 kB / 0.7646 GB, free: 14.03 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.5792, allocations: 4 kB / 0.7646 GB, free: 14.03 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.5794, allocations: 83.88 kB / 0.7646 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009374/0.5804, allocations: 0.7589 MB / 0.7654 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.5805, allocations: 58.55 kB / 0.7654 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.5805, allocations: 0 / 0.7654 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.5808, allocations: 134.8 kB / 0.7656 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=11): time 1.223e-06/0.5808, allocations: 0 / 0.7656 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0004804/0.5813, allocations: 181.6 kB / 0.7657 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.112e-05/0.5814, allocations: 140.4 kB / 0.7659 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.5815, allocations: 177.9 kB / 0.766 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.5816, allocations: 29.7 kB / 0.7661 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.58e-05/0.5817, allocations: 131.8 kB / 0.7662 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.141e-05/0.5817, allocations: 35.55 kB / 0.7662 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.382e-06/0.5817, allocations: 0 / 0.7662 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.5818, allocations: 334.8 kB / 0.7665 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.582, allocations: 40.34 kB / 0.7666 GB, free: 11.78 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.5821, allocations: 155.2 kB / 0.7667 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.5823, allocations: 59.92 kB / 0.7668 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.5823, allocations: 4 kB / 0.7668 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003948/0.5827, allocations: 217.3 kB / 0.767 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.5827, allocations: 8 kB / 0.767 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.5827, allocations: 4 kB / 0.767 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.5828, allocations: 4 kB / 0.767 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.583, allocations: 35.92 kB / 0.767 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.583, allocations: 8.203 kB / 0.7671 GB, free: 11.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.5831, allocations: 35.83 kB / 0.7671 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.5832, allocations: 8 kB / 0.7671 GB, free: 11.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001071/0.5833, allocations: 142.3 kB / 0.7672 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.736e-05/0.5833, allocations: 15.81 kB / 0.7672 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.071e-05/0.5834, allocations: 21.39 kB / 0.7673 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.437e-06/0.5834, allocations: 4 kB / 0.7673 GB, free: 11.01 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.5834, allocations: 4 kB / 0.7673 GB, free: 11.01 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.5834, allocations: 0 / 0.7673 GB, free: 11.01 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007388/0.5841, allocations: 0.5327 MB / 0.7678 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.5841, allocations: 0 / 0.7678 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.5843, allocations: 19.98 kB / 0.7678 GB, free: 10.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.5843, allocations: 0 / 0.7678 GB, free: 10.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.5843, allocations: 8 kB / 0.7678 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.5843, allocations: 0 / 0.7678 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.5843, allocations: 0 / 0.7678 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005113/0.5848, allocations: 409.3 kB / 0.7682 GB, free: 9.949 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.486e-05/0.5849, allocations: 104.8 kB / 0.7683 GB, free: 9.828 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.5849, allocations: 4.312 kB / 0.7683 GB, free: 9.824 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.5851, allocations: 19.98 kB / 0.7683 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.602e-05/0.5852, allocations: 11.98 kB / 0.7683 GB, free: 9.793 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.5852, allocations: 11.98 kB / 0.7684 GB, free: 9.781 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001065/0.5853, allocations: 144.6 kB / 0.7685 GB, free: 9.641 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5853, allocations: 3.938 kB / 0.7685 GB, free: 9.637 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003162/0.5856, allocations: 28 kB / 0.7685 GB, free: 9.609 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008137/0.5865, allocations: 1.148 MB / 0.7697 GB, free: 8.414 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003339/0.5868, allocations: 128.2 kB / 0.7698 GB, free: 8.289 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5868, allocations: 3.938 kB / 0.7698 GB, free: 8.285 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.587, allocations: 48.92 kB / 0.7698 GB, free: 8.238 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.5874, allocations: 80.38 kB / 0.7699 GB, free: 8.164 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.5899, allocations: 3.499 MB / 0.7733 GB, free: 4.531 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.5902, allocations: 0.7361 MB / 0.774 GB, free: 3.77 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.498e-05/0.5903, allocations: 13.55 kB / 0.774 GB, free: 3.758 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.004e-05/0.5904, allocations: 51.42 kB / 0.7741 GB, free: 3.707 MB / 0.5417 GB Notification: Performance of SimCode: time 3.41e-07/0.5904, allocations: 0 / 0.7741 GB, free: 3.707 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.015/0.6054, allocations: 3.537 MB / 0.7776 GB, free: 316 kB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/0.6056, allocations: 176.5 kB / 0.7777 GB, free: 68 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/2.386, allocations: 0 / 0.7777 GB, free: 68 kB / 0.5417 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)