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.001597/0.001598, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9782/0.9782, allocations: 133.6 MB / 141.6 MB, free: 2.898 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 221.5 MB / 395.4 MB, free: 10.84 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.0008488/0.0008487, allocations: 90.52 kB / 478.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.265e-05/2.294e-05, allocations: 8 kB / 0.5535 GB, free: 8.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.414/0.4141, allocations: 82.3 MB / 0.6339 GB, free: 40.86 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1379/0.552, allocations: 112.5 MB / 0.7438 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.5523, allocations: 71.97 kB / 0.7439 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01099/0.5633, allocations: 3.503 MB / 0.7473 GB, free: 6.688 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5633, allocations: 0 / 0.7473 GB, free: 6.688 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.557e-05/0.5633, allocations: 8 kB / 0.7473 GB, free: 6.68 MB / 0.5261 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.0005878/0.5639, allocations: 443.5 kB / 0.7477 GB, free: 6.203 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.564, allocations: 8.031 kB / 0.7477 GB, free: 6.195 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.877e-05/0.564, allocations: 19.72 kB / 0.7477 GB, free: 6.176 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.5643, allocations: 234.7 kB / 0.748 GB, free: 5.906 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.5643, allocations: 4 kB / 0.748 GB, free: 5.902 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.5644, allocations: 11.91 kB / 0.748 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.948e-05/0.5645, allocations: 32 kB / 0.748 GB, free: 5.859 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001744/0.5646, allocations: 131.5 kB / 0.7481 GB, free: 5.711 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.5647, allocations: 0 / 0.7481 GB, free: 5.711 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.5647, allocations: 0 / 0.7481 GB, free: 5.711 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.5647, allocations: 4 kB / 0.7481 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009169/0.5656, allocations: 0.7128 MB / 0.7488 GB, free: 4.941 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 6.316e-05/0.5657, allocations: 34.56 kB / 0.7489 GB, free: 4.898 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.69e-05/0.5657, allocations: 16.86 kB / 0.7489 GB, free: 4.879 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.5658, allocations: 0 / 0.7489 GB, free: 4.879 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001714/0.5659, allocations: 118.8 kB / 0.749 GB, free: 4.738 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=11): time 1.392e-06/0.566, allocations: 3.938 kB / 0.749 GB, free: 4.734 MB / 0.5261 GB Notification: Performance of matching and sorting (n=11): time 0.00022/0.5662, allocations: 97.42 kB / 0.7491 GB, free: 4.633 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.261e-05/0.5663, allocations: 132.5 kB / 0.7492 GB, free: 4.473 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.5664, allocations: 149.8 kB / 0.7494 GB, free: 4.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.5664, allocations: 29.7 kB / 0.7494 GB, free: 4.285 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.081e-05/0.5665, allocations: 131.8 kB / 0.7495 GB, free: 4.152 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.139e-05/0.5665, allocations: 35.45 kB / 0.7496 GB, free: 4.117 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/0.5666, allocations: 0 / 0.7496 GB, free: 4.117 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.5667, allocations: 326.8 kB / 0.7499 GB, free: 3.789 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.048e-05/0.5667, allocations: 24.31 kB / 0.7499 GB, free: 3.762 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.5668, allocations: 129.6 kB / 0.75 GB, free: 3.586 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.467e-05/0.5669, allocations: 39.97 kB / 0.7501 GB, free: 3.547 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.5669, allocations: 4 kB / 0.7501 GB, free: 3.543 MB / 0.5261 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000225/0.5672, allocations: 161.2 kB / 0.7502 GB, free: 3.379 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.5672, allocations: 4 kB / 0.7502 GB, free: 3.375 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.5672, allocations: 4 kB / 0.7502 GB, free: 3.371 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.5672, allocations: 8 kB / 0.7502 GB, free: 3.363 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.5673, allocations: 36.41 kB / 0.7503 GB, free: 3.328 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.5674, allocations: 15.94 kB / 0.7503 GB, free: 3.312 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.5675, allocations: 19.92 kB / 0.7503 GB, free: 3.293 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.5675, allocations: 12 kB / 0.7503 GB, free: 3.281 MB / 0.5261 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 () * 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 8.005e-05/0.5676, allocations: 112.9 kB / 0.7504 GB, free: 3.164 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001769/0.5678, allocations: 105.4 kB / 0.7505 GB, free: 3.055 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.5678, allocations: 15.81 kB / 0.7505 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.889e-05/0.5679, allocations: 25.89 kB / 0.7506 GB, free: 3.008 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.5679, allocations: 4 kB / 0.7506 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.5679, allocations: 0 / 0.7506 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.5679, allocations: 0 / 0.7506 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005769/0.5685, allocations: 474.2 kB / 0.751 GB, free: 2.496 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.5685, allocations: 4 kB / 0.751 GB, free: 2.492 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.5686, allocations: 23.92 kB / 0.751 GB, free: 2.469 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.5687, allocations: 0 / 0.751 GB, free: 2.469 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.5687, allocations: 4 kB / 0.751 GB, free: 2.465 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.5687, allocations: 0 / 0.751 GB, free: 2.465 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.5687, allocations: 3.984 kB / 0.751 GB, free: 2.461 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000309/0.569, allocations: 353.3 kB / 0.7514 GB, free: 2.074 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.193e-05/0.5691, allocations: 96.89 kB / 0.7515 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.5691, allocations: 3.953 kB / 0.7515 GB, free: 1.957 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.5693, allocations: 19.98 kB / 0.7515 GB, free: 1.938 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.025e-05/0.5693, allocations: 15.98 kB / 0.7515 GB, free: 1.922 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.5694, allocations: 7.984 kB / 0.7515 GB, free: 1.914 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 8.54e-05/0.5695, allocations: 124.3 kB / 0.7516 GB, free: 1.793 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5695, allocations: 3.938 kB / 0.7516 GB, free: 1.789 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003131/0.5698, allocations: 24 kB / 0.7517 GB, free: 1.766 MB / 0.5261 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 () * 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.0006219/0.5704, allocations: 1.087 MB / 0.7527 GB, free: 0.6367 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001547/0.5706, allocations: 80.19 kB / 0.7528 GB, free: 0.5586 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.5706, allocations: 0 / 0.7528 GB, free: 0.5586 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 6.368e-05/0.5707, allocations: 35.92 kB / 0.7528 GB, free: 0.5234 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.5711, allocations: 54.61 kB / 0.7529 GB, free: 484 kB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006634/0.5718, allocations: 306 kB / 0.7532 GB, free: 128 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.5721, allocations: 0.7241 MB / 0.7539 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.193e-05/0.5722, allocations: 25.52 kB / 0.7539 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.31e-05/0.5722, allocations: 47.42 kB / 0.754 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of SimCode: time 2.61e-07/0.5722, allocations: 0 / 0.754 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01966/0.5919, allocations: 2.997 MB / 0.7569 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.5921, allocations: 138.5 kB / 0.757 GB, free: 12.14 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.854/2.446, allocations: 3.969 kB / 0.757 GB, free: 12.14 MB / 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)