Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_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.0009882/0.0009882, allocations: 173.9 kB / 7.648 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.7773/0.7773, allocations: 133.6 MB / 141.6 MB, free: 2.867 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.457/1.457, allocations: 221.5 MB / 395.5 MB, free: 10.82 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.000858/0.0008577, allocations: 96.05 kB / 478.2 MB, free: 1.328 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.743e-05/3.733e-05, allocations: 8 kB / 0.5536 GB, free: 8.957 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4368/0.4369, allocations: 82.3 MB / 0.6339 GB, free: 40.73 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1481/0.5851, allocations: 112.5 MB / 0.7438 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.5854, allocations: 71.95 kB / 0.7439 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009463/0.5948, allocations: 3.496 MB / 0.7473 GB, free: 6.586 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.714e-06/0.5949, allocations: 4 kB / 0.7473 GB, free: 6.582 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.621e-05/0.5949, allocations: 8.875 kB / 0.7473 GB, free: 6.574 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.0006002/0.5955, allocations: 438.6 kB / 0.7477 GB, free: 6.102 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.5956, allocations: 11.97 kB / 0.7477 GB, free: 6.09 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.708e-05/0.5956, allocations: 23.72 kB / 0.7477 GB, free: 6.066 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.5959, allocations: 226.7 kB / 0.748 GB, free: 5.805 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.5959, allocations: 4 kB / 0.748 GB, free: 5.801 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.596, allocations: 19.84 kB / 0.748 GB, free: 5.781 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001041/0.5961, allocations: 35.94 kB / 0.748 GB, free: 5.746 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.5963, allocations: 115.6 kB / 0.7481 GB, free: 5.613 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.5963, allocations: 4 kB / 0.7481 GB, free: 5.609 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.5963, allocations: 0 / 0.7481 GB, free: 5.609 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.5963, allocations: 7.938 kB / 0.7481 GB, free: 5.602 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000924/0.5973, allocations: 0.7167 MB / 0.7488 GB, free: 4.832 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 6.591e-05/0.5973, allocations: 34.58 kB / 0.7489 GB, free: 4.789 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.63e-05/0.5974, allocations: 24.8 kB / 0.7489 GB, free: 4.762 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.5974, allocations: 0 / 0.7489 GB, free: 4.762 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001679/0.5976, allocations: 114.6 kB / 0.749 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.5976, allocations: 0 / 0.749 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of matching and sorting (n=11): time 0.0002334/0.5978, allocations: 101.5 kB / 0.7491 GB, free: 4.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.5979, allocations: 128.5 kB / 0.7492 GB, free: 4.363 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.5981, allocations: 149.8 kB / 0.7494 GB, free: 4.211 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.5981, allocations: 29.7 kB / 0.7494 GB, free: 4.176 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.216e-05/0.5982, allocations: 135.9 kB / 0.7495 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.5982, allocations: 31.47 kB / 0.7496 GB, free: 4.008 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.111e-06/0.5982, allocations: 0 / 0.7496 GB, free: 4.008 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.5984, allocations: 330.8 kB / 0.7499 GB, free: 3.676 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.88e-05/0.5984, allocations: 24.41 kB / 0.7499 GB, free: 3.648 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.5985, allocations: 129.4 kB / 0.75 GB, free: 3.473 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.699e-05/0.5986, allocations: 43.91 kB / 0.7501 GB, free: 3.43 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.5986, allocations: 4 kB / 0.7501 GB, free: 3.426 MB / 0.5261 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002416/0.5989, allocations: 149.7 kB / 0.7502 GB, free: 3.273 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.5989, allocations: 9.875 kB / 0.7502 GB, free: 3.266 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.5989, allocations: 7.984 kB / 0.7502 GB, free: 3.258 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.5989, allocations: 8 kB / 0.7502 GB, free: 3.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.5991, allocations: 35.92 kB / 0.7503 GB, free: 3.215 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.5991, allocations: 7.938 kB / 0.7503 GB, free: 3.207 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001398/0.5992, allocations: 19.98 kB / 0.7503 GB, free: 3.188 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.5993, allocations: 15.97 kB / 0.7503 GB, free: 3.172 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 9.446e-05/0.5994, allocations: 121 kB / 0.7504 GB, free: 3.047 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001499/0.5995, allocations: 113.4 kB / 0.7505 GB, free: 2.93 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.5995, allocations: 15.81 kB / 0.7505 GB, free: 2.914 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.37e-05/0.5996, allocations: 13.84 kB / 0.7506 GB, free: 2.895 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.5996, allocations: 0 / 0.7506 GB, free: 2.895 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.5996, allocations: 4 kB / 0.7506 GB, free: 2.891 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.521e-05/0.5996, allocations: 3.984 kB / 0.7506 GB, free: 2.887 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005693/0.6002, allocations: 470.2 kB / 0.751 GB, free: 2.383 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.6002, allocations: 0 / 0.751 GB, free: 2.383 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/0.6004, allocations: 23.98 kB / 0.751 GB, free: 2.359 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.6004, allocations: 0 / 0.751 GB, free: 2.359 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.6004, allocations: 7.922 kB / 0.751 GB, free: 2.352 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.6004, allocations: 8 kB / 0.7511 GB, free: 2.344 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6004, allocations: 0 / 0.7511 GB, free: 2.344 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000294/0.6007, allocations: 345.4 kB / 0.7514 GB, free: 1.965 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.98e-05/0.6008, allocations: 96.86 kB / 0.7515 GB, free: 1.852 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.6008, allocations: 3.953 kB / 0.7515 GB, free: 1.848 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.601, allocations: 16.03 kB / 0.7515 GB, free: 1.832 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.795e-05/0.601, allocations: 23.84 kB / 0.7515 GB, free: 1.809 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.6011, allocations: 4 kB / 0.7515 GB, free: 1.805 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 9.181e-05/0.6011, allocations: 124.3 kB / 0.7516 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6012, allocations: 4 kB / 0.7516 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003211/0.6015, allocations: 20 kB / 0.7517 GB, free: 1.66 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.0006647/0.6022, allocations: 1.094 MB / 0.7527 GB, free: 0.5273 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.000167/0.6023, allocations: 79.84 kB / 0.7528 GB, free: 460 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.6023, allocations: 0 / 0.7528 GB, free: 460 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 6.809e-05/0.6024, allocations: 32.94 kB / 0.7528 GB, free: 428 kB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004387/0.6029, allocations: 54.23 kB / 0.7529 GB, free: 376 kB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006556/0.6035, allocations: 305.3 kB / 0.7532 GB, free: 20 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.6038, allocations: 0.728 MB / 0.7539 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.195e-05/0.6039, allocations: 21.78 kB / 0.7539 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.014e-05/0.604, allocations: 47.42 kB / 0.754 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.604, allocations: 0 / 0.754 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.6263, allocations: 3.009 MB / 0.7569 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002038/0.6266, allocations: 123.9 kB / 0.757 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/2.273, allocations: 3.938 kB / 0.757 GB, free: 12.03 MB / 0.5417 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)