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.001206/0.001206, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7418/0.7418, allocations: 133.4 MB / 146.7 MB, free: 10.79 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.519/1.519, allocations: 221.3 MB / 400.4 MB, free: 5.848 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 89.94 kB / 483.3 MB, free: 5.824 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.941e-05/3.944e-05, allocations: 4.406 kB / 0.5601 GB, free: 87.81 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1629, allocations: 82.31 MB / 0.6405 GB, free: 7.695 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6077/0.7707, allocations: 113.2 MB / 0.751 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.7711, allocations: 71.17 kB / 0.7511 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.009768/0.7809, allocations: 3.516 MB / 0.7545 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.755e-06/0.7809, allocations: 0 / 0.7545 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.614e-05/0.781, allocations: 8.688 kB / 0.7545 GB, free: 27.41 MB / 0.5105 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.0006772/0.7816, allocations: 443.3 kB / 0.755 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.7817, allocations: 7.719 kB / 0.755 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.723e-05/0.7818, allocations: 44.06 kB / 0.755 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.98e-05/0.7819, allocations: 23.47 kB / 0.755 GB, free: 26.97 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.7821, allocations: 237.7 kB / 0.7553 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.7822, allocations: 9.016 kB / 0.7553 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.7822, allocations: 18.69 kB / 0.7553 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/0.7824, allocations: 136.8 kB / 0.7554 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.7825, allocations: 3.984 kB / 0.7554 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.7825, allocations: 11.31 kB / 0.7554 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.7825, allocations: 0 / 0.7554 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.7826, allocations: 48.28 kB / 0.7555 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.7837, allocations: 0.7543 MB / 0.7562 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 7.85e-05/0.7838, allocations: 37.3 kB / 0.7563 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.031e-05/0.7839, allocations: 20.27 kB / 0.7563 GB, free: 26 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.7839, allocations: 0 / 0.7563 GB, free: 26 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001736/0.7841, allocations: 115.6 kB / 0.7564 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.7841, allocations: 0 / 0.7564 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.0003143/0.7844, allocations: 107.3 kB / 0.7565 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.051e-05/0.7845, allocations: 132.3 kB / 0.7566 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.7847, allocations: 184.4 kB / 0.7568 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.7847, allocations: 39.77 kB / 0.7568 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 9.153e-05/0.7848, allocations: 123.7 kB / 0.7569 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.723e-05/0.7849, allocations: 40.91 kB / 0.757 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-06/0.7849, allocations: 0 / 0.757 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.785, allocations: 329.2 kB / 0.7573 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.111e-05/0.7851, allocations: 29.94 kB / 0.7573 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.589e-05/0.7852, allocations: 133.2 kB / 0.7574 GB, free: 25 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.304e-05/0.7853, allocations: 43.39 kB / 0.7575 GB, free: 24.99 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.7853, allocations: 4 kB / 0.7575 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000272/0.7856, allocations: 173.2 kB / 0.7577 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.7856, allocations: 8.188 kB / 0.7577 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.7856, allocations: 7.844 kB / 0.7577 GB, free: 24.92 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.7856, allocations: 11.62 kB / 0.7577 GB, free: 24.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.7858, allocations: 37.48 kB / 0.7577 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.7858, allocations: 7.781 kB / 0.7577 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.786, allocations: 28.8 kB / 0.7578 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.786, allocations: 14.83 kB / 0.7578 GB, free: 24.9 MB / 0.5105 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.746e-05/0.7861, allocations: 127.4 kB / 0.7579 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/0.7861, allocations: 15.53 kB / 0.7579 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.261e-05/0.7862, allocations: 18.78 kB / 0.7579 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.7862, allocations: 3.781 kB / 0.7579 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.7862, allocations: 0 / 0.7579 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.7862, allocations: 2.812 kB / 0.7579 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007141/0.787, allocations: 0.4974 MB / 0.7584 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.787, allocations: 0 / 0.7584 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.7871, allocations: 24.27 kB / 0.7584 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.7871, allocations: 0 / 0.7584 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.7871, allocations: 5.625 kB / 0.7584 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.7872, allocations: 4 kB / 0.7584 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.7872, allocations: 3.953 kB / 0.7585 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003987/0.7876, allocations: 364.1 kB / 0.7588 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.972e-05/0.7876, allocations: 100.2 kB / 0.7589 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.7877, allocations: 4.031 kB / 0.7589 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.7879, allocations: 19.45 kB / 0.7589 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.7879, allocations: 13.86 kB / 0.7589 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.7879, allocations: 3.844 kB / 0.7589 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001085/0.788, allocations: 140.1 kB / 0.7591 GB, free: 23.83 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/0.788, allocations: 0 / 0.7591 GB, free: 23.83 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003365/0.7884, allocations: 33.53 kB / 0.7591 GB, free: 23.83 MB / 0.5105 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.0006875/0.7891, allocations: 1.1 MB / 0.7602 GB, free: 22.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001888/0.7893, allocations: 87.88 kB / 0.7603 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.7893, allocations: 0 / 0.7603 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.361e-05/0.7894, allocations: 37.41 kB / 0.7603 GB, free: 22.78 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/0.7898, allocations: 66.64 kB / 0.7604 GB, free: 22.76 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007472/0.7906, allocations: 307.8 kB / 0.7607 GB, free: 22.53 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.7909, allocations: 0.727 MB / 0.7614 GB, free: 21.81 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 9.731e-05/0.791, allocations: 17.59 kB / 0.7614 GB, free: 21.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.666e-05/0.7911, allocations: 49.98 kB / 0.7614 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of SimCode: time 3.91e-07/0.7911, allocations: 0 / 0.7614 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0161/0.8072, allocations: 3.51 MB / 0.7649 GB, free: 20.14 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.8075, allocations: 141.8 kB / 0.765 GB, free: 19.92 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/2.492, allocations: 0 / 0.765 GB, free: 19.92 MB / 0.5105 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)