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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005014/0.00502, allocations: 97.34 kB / 15.73 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 193.9 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.044/1.044, allocations: 135.5 MB / 426.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001924, allocations: 71.88 kB / 0.5858 GB, free: 3.199 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3988, allocations: 81.01 MB / 0.6649 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002375/0.4012, allocations: 1.814 MB / 0.6666 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008041/0.402, allocations: 0.5363 MB / 0.6672 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.999e-05/0.4021, allocations: 7.125 kB / 0.6672 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.4023, allocations: 21.02 kB / 0.6672 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.576e-05/0.4023, allocations: 35.28 kB / 0.6672 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.4025, allocations: 64.77 kB / 0.6673 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001895/0.4027, allocations: 165.3 kB / 0.6675 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.4029, allocations: 64.19 kB / 0.6675 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.825e-05/0.4029, allocations: 53.47 kB / 0.6676 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.781e-05/0.403, allocations: 57.27 kB / 0.6676 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.403, allocations: 10.31 kB / 0.6676 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.273e-05/0.4031, allocations: 10.41 kB / 0.6676 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.908e-05/0.4031, allocations: 28.7 kB / 0.6677 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.567e-05/0.4032, allocations: 67.22 kB / 0.6677 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.4033, allocations: 134.9 kB / 0.6679 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.4033, allocations: 0 / 0.6679 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.103e-06/0.4033, allocations: 1.406 kB / 0.6679 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.317e-06/0.4033, allocations: 3.984 kB / 0.6679 GB, free: 4.477 MB / 0.4981 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.0005658/0.4039, allocations: 480.6 kB / 0.6683 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.404, allocations: 10.03 kB / 0.6683 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.905e-05/0.404, allocations: 37.22 kB / 0.6684 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.404, allocations: 23.02 kB / 0.6684 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.4043, allocations: 244.7 kB / 0.6686 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.4043, allocations: 12.95 kB / 0.6686 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/0.4043, allocations: 12.06 kB / 0.6686 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002493/0.4046, allocations: 147.9 kB / 0.6688 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.4046, allocations: 3.938 kB / 0.6688 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.4046, allocations: 6.25 kB / 0.6688 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.4047, allocations: 6.312 kB / 0.6688 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002209/0.4049, allocations: 73.56 kB / 0.6689 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006723/0.4056, allocations: 0.7358 MB / 0.6696 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.4057, allocations: 44.89 kB / 0.6696 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.4058, allocations: 36.42 kB / 0.6697 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.4058, allocations: 1.406 kB / 0.6697 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.4061, allocations: 125.4 kB / 0.6698 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.964e-06/0.4061, allocations: 0 / 0.6698 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004617/0.4065, allocations: 176.1 kB / 0.67 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.4066, allocations: 131 kB / 0.6701 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.4068, allocations: 200.3 kB / 0.6703 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.4068, allocations: 30.86 kB / 0.6703 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.041e-05/0.4068, allocations: 132 kB / 0.6704 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.665e-05/0.4069, allocations: 40.97 kB / 0.6705 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.4069, allocations: 40.05 kB / 0.6705 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.015e-05/0.407, allocations: 332 kB / 0.6708 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.4071, allocations: 36.72 kB / 0.6709 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.4073, allocations: 151.2 kB / 0.671 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/0.4075, allocations: 205.3 kB / 0.6712 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.4076, allocations: 1.688 kB / 0.6712 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003566/0.4079, allocations: 216.7 kB / 0.6714 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.4079, allocations: 7.062 kB / 0.6714 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.408, allocations: 4.219 kB / 0.6714 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.408, allocations: 5.031 kB / 0.6714 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.4081, allocations: 32.11 kB / 0.6715 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.4081, allocations: 5.375 kB / 0.6715 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.4083, allocations: 35.42 kB / 0.6715 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.4083, allocations: 16.77 kB / 0.6715 GB, free: 1.105 MB / 0.4981 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 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.758e-05/0.4084, allocations: 140.8 kB / 0.6716 GB, free: 0.9688 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.963e-05/0.4084, allocations: 15.94 kB / 0.6717 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.278e-05/0.4085, allocations: 22.86 kB / 0.6717 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.4085, allocations: 6.938 kB / 0.6717 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.4085, allocations: 1.219 kB / 0.6717 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.4085, allocations: 1.188 kB / 0.6717 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006866/0.4092, allocations: 0.5174 MB / 0.6722 GB, free: 460 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4092, allocations: 1.281 kB / 0.6722 GB, free: 460 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.4093, allocations: 15.45 kB / 0.6722 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.4093, allocations: 2.469 kB / 0.6722 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.4094, allocations: 6.562 kB / 0.6722 GB, free: 452 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.4094, allocations: 9.562 kB / 0.6722 GB, free: 444 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4094, allocations: 3.938 kB / 0.6722 GB, free: 440 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004518/0.4098, allocations: 349.8 kB / 0.6726 GB, free: 148 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.459e-05/0.4099, allocations: 94.41 kB / 0.6727 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.4099, allocations: 13.44 kB / 0.6727 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.4101, allocations: 15.42 kB / 0.6727 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.107e-05/0.4102, allocations: 17.23 kB / 0.6727 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.4102, allocations: 4.281 kB / 0.6727 GB, free: 8 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001578/0.4103, allocations: 138.5 kB / 0.6728 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4104, allocations: 0 / 0.6728 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003478/0.4107, allocations: 27.62 kB / 0.6729 GB, free: 15.9 MB / 0.5137 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,sampleTrigger.y,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009343/0.4117, allocations: 0.9013 MB / 0.6737 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003331/0.412, allocations: 113.4 kB / 0.6739 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.412, allocations: 1 kB / 0.6739 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.4122, allocations: 56.38 kB / 0.6739 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005648/0.4127, allocations: 63.48 kB / 0.674 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.4156, allocations: 2.277 MB / 0.6762 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.416, allocations: 0.7259 MB / 0.6769 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 9.743e-05/0.4161, allocations: 14.27 kB / 0.6769 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.313e-05/0.4162, allocations: 49.89 kB / 0.677 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of SimCode: time 6.02e-07/0.4162, allocations: 4 kB / 0.677 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.4434, allocations: 4.012 MB / 0.6809 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.214/8.658, allocations: 1.094 kB / 0.6809 GB, free: 10.18 MB / 0.5137 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)