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/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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005254/0.005254, allocations: 99.55 kB / 15.73 MB, free: 6.445 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.00141/0.00141, allocations: 195.2 kB / 16.67 MB, free: 6.352 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7708/0.7708, allocations: 132.2 MB / 422.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002246/0.002246, allocations: 67.89 kB / 0.5809 GB, free: 8.074 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4865/0.4887, allocations: 80.19 MB / 0.6592 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003162/0.492, allocations: 1.815 MB / 0.661 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001074/0.4931, allocations: 0.5425 MB / 0.6615 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.4932, allocations: 6.812 kB / 0.6615 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001937/0.4934, allocations: 29.7 kB / 0.6615 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.111e-05/0.4936, allocations: 21.97 kB / 0.6616 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.4939, allocations: 69.53 kB / 0.6616 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003314/0.4942, allocations: 170.8 kB / 0.6618 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.4944, allocations: 56.25 kB / 0.6618 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.4945, allocations: 54.08 kB / 0.6619 GB, free: 8 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.985e-05/0.4947, allocations: 60.42 kB / 0.6619 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.953e-05/0.4947, allocations: 10.09 kB / 0.662 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.24e-05/0.4947, allocations: 10.47 kB / 0.662 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.933e-05/0.4948, allocations: 29.83 kB / 0.662 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.687e-05/0.4948, allocations: 68.52 kB / 0.6621 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.4951, allocations: 138.7 kB / 0.6622 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.4951, allocations: 0 / 0.6622 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.573e-06/0.4951, allocations: 5.438 kB / 0.6622 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.4951, allocations: 0 / 0.6622 GB, free: 7.828 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.0006593/0.4958, allocations: 473.7 kB / 0.6626 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.4958, allocations: 9.375 kB / 0.6627 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.878e-05/0.4959, allocations: 45.14 kB / 0.6627 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.47e-05/0.4959, allocations: 22.48 kB / 0.6627 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.4962, allocations: 237.4 kB / 0.6629 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.4962, allocations: 9.031 kB / 0.663 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.641e-05/0.4963, allocations: 13.44 kB / 0.663 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.4966, allocations: 153.2 kB / 0.6631 GB, free: 7 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.4966, allocations: 4 kB / 0.6631 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.4966, allocations: 3.156 kB / 0.6631 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.4967, allocations: 6.531 kB / 0.6631 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.4969, allocations: 72.66 kB / 0.6632 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008124/0.4977, allocations: 0.7421 MB / 0.6639 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001455/0.4979, allocations: 43.06 kB / 0.664 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.498, allocations: 34.8 kB / 0.664 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.498, allocations: 6.188 kB / 0.664 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/0.4983, allocations: 138.3 kB / 0.6641 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.4983, allocations: 0 / 0.6641 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004856/0.4988, allocations: 164.5 kB / 0.6643 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.4988, allocations: 135.3 kB / 0.6644 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001752/0.499, allocations: 199.6 kB / 0.6646 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.499, allocations: 31.14 kB / 0.6646 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.255e-05/0.4991, allocations: 129 kB / 0.6648 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.956e-05/0.4991, allocations: 40.72 kB / 0.6648 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.246e-05/0.4992, allocations: 44.14 kB / 0.6648 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.34e-05/0.4992, allocations: 326.4 kB / 0.6652 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.4994, allocations: 37.69 kB / 0.6652 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.4995, allocations: 146.3 kB / 0.6653 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.4998, allocations: 205.2 kB / 0.6655 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4998, allocations: 1.375 kB / 0.6655 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003839/0.5002, allocations: 218.1 kB / 0.6657 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.5002, allocations: 5.938 kB / 0.6657 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.5003, allocations: 4.469 kB / 0.6657 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.5003, allocations: 5.969 kB / 0.6657 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.5004, allocations: 35.17 kB / 0.6658 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.5004, allocations: 9.516 kB / 0.6658 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.5006, allocations: 27.88 kB / 0.6658 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.5006, allocations: 16.58 kB / 0.6658 GB, free: 4.617 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 9.363e-05/0.5007, allocations: 139.8 kB / 0.666 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.5007, allocations: 17.34 kB / 0.666 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.712e-05/0.5008, allocations: 22.61 kB / 0.666 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.5008, allocations: 2.5 kB / 0.666 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.5008, allocations: 5.125 kB / 0.666 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.5008, allocations: 1.25 kB / 0.666 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006515/0.5015, allocations: 0.5171 MB / 0.6665 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.5015, allocations: 1.594 kB / 0.6665 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.5016, allocations: 15.92 kB / 0.6665 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.5016, allocations: 5.438 kB / 0.6665 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.5016, allocations: 7.062 kB / 0.6665 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.5017, allocations: 5.281 kB / 0.6666 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.5017, allocations: 1.562 kB / 0.6666 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004225/0.5021, allocations: 356.2 kB / 0.6669 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.519e-05/0.5021, allocations: 99.45 kB / 0.667 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.5022, allocations: 1.438 kB / 0.667 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.5023, allocations: 19.61 kB / 0.667 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.446e-05/0.5024, allocations: 16.94 kB / 0.667 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/0.5024, allocations: 3.906 kB / 0.667 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.947e-05/0.5025, allocations: 138.2 kB / 0.6672 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.5025, allocations: 5.125 kB / 0.6672 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003183/0.5028, allocations: 26.91 kB / 0.6672 GB, free: 3.41 MB / 0.4981 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.0005719/0.5034, allocations: 0.8941 MB / 0.6681 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002903/0.5037, allocations: 114 kB / 0.6682 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5037, allocations: 8.25 kB / 0.6682 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001345/0.5038, allocations: 56.38 kB / 0.6682 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005553/0.5044, allocations: 62.31 kB / 0.6683 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.5064, allocations: 2.278 MB / 0.6705 GB, free: 488 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.5066, allocations: 0.7219 MB / 0.6712 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.272e-05/0.5067, allocations: 18.64 kB / 0.6712 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.096e-05/0.5068, allocations: 49.95 kB / 0.6713 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of SimCode: time 3.2e-07/0.5068, allocations: 0 / 0.6713 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.5277, allocations: 4.017 MB / 0.6752 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.873/8.4, allocations: 4.688 kB / 0.6752 GB, free: 13.7 MB / 0.5137 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 & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)