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.005761/0.00576, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001467/0.001467, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.951/0.951, allocations: 135.1 MB / 425.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.89 kB / 0.5851 GB, free: 3.859 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4031/0.4043, allocations: 80.92 MB / 0.6642 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002655/0.407, allocations: 1.815 MB / 0.6659 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008533/0.4079, allocations: 0.544 MB / 0.6665 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.4081, allocations: 7.219 kB / 0.6665 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.4082, allocations: 24.92 kB / 0.6665 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.868e-05/0.4083, allocations: 27.48 kB / 0.6665 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.4085, allocations: 72.34 kB / 0.6666 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001916/0.4087, allocations: 164 kB / 0.6668 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.4089, allocations: 58.27 kB / 0.6668 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.127e-05/0.409, allocations: 59.02 kB / 0.6669 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.218e-05/0.409, allocations: 62.17 kB / 0.6669 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.409, allocations: 8.969 kB / 0.6669 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.929e-05/0.4091, allocations: 10.16 kB / 0.6669 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.757e-05/0.4091, allocations: 29.42 kB / 0.667 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.295e-05/0.4092, allocations: 62.61 kB / 0.667 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.4093, allocations: 135.6 kB / 0.6672 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4093, allocations: 0 / 0.6672 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4093, allocations: 1.781 kB / 0.6672 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.4094, allocations: 4 kB / 0.6672 GB, free: 4.934 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.0005734/0.4099, allocations: 476.3 kB / 0.6676 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.41, allocations: 12.89 kB / 0.6676 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.117e-05/0.41, allocations: 42.72 kB / 0.6677 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.229e-05/0.4101, allocations: 22.73 kB / 0.6677 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002379/0.4103, allocations: 244.3 kB / 0.6679 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.4103, allocations: 5.938 kB / 0.6679 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.306e-05/0.4104, allocations: 12.16 kB / 0.6679 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/0.4106, allocations: 152.3 kB / 0.6681 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.4106, allocations: 0 / 0.6681 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.4107, allocations: 10.38 kB / 0.6681 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.4107, allocations: 6.828 kB / 0.6681 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002265/0.4109, allocations: 77.38 kB / 0.6682 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000666/0.4116, allocations: 0.7386 MB / 0.6689 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.4117, allocations: 40.97 kB / 0.6689 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.972e-05/0.4118, allocations: 37.67 kB / 0.669 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.4119, allocations: 5.469 kB / 0.669 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000195/0.4121, allocations: 124.8 kB / 0.6691 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/0.4121, allocations: 0 / 0.6691 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004349/0.4125, allocations: 164.3 kB / 0.6693 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.4126, allocations: 138.9 kB / 0.6694 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.4127, allocations: 204.7 kB / 0.6696 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.4127, allocations: 27.11 kB / 0.6696 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.432e-05/0.4128, allocations: 139.7 kB / 0.6697 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.585e-05/0.4128, allocations: 36.84 kB / 0.6698 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/0.4129, allocations: 39.7 kB / 0.6698 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.396e-05/0.4129, allocations: 332 kB / 0.6701 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.413, allocations: 37 kB / 0.6702 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.4132, allocations: 153.9 kB / 0.6703 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.4134, allocations: 201.9 kB / 0.6705 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4134, allocations: 1.156 kB / 0.6705 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003518/0.4138, allocations: 206.1 kB / 0.6707 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.4138, allocations: 10.14 kB / 0.6707 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.4138, allocations: 3.938 kB / 0.6707 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.4139, allocations: 5.312 kB / 0.6707 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.414, allocations: 36.86 kB / 0.6708 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.414, allocations: 8.438 kB / 0.6708 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.4141, allocations: 24.97 kB / 0.6708 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.4142, allocations: 12.22 kB / 0.6708 GB, free: 1.57 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 7.531e-05/0.4142, allocations: 138.8 kB / 0.6709 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.751e-05/0.4143, allocations: 17.66 kB / 0.671 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.826e-05/0.4143, allocations: 18.81 kB / 0.671 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.4143, allocations: 5.078 kB / 0.671 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4143, allocations: 1.281 kB / 0.671 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.4143, allocations: 5.531 kB / 0.671 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006089/0.415, allocations: 0.522 MB / 0.6715 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.415, allocations: 1.188 kB / 0.6715 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.4151, allocations: 20.39 kB / 0.6715 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4151, allocations: 1.75 kB / 0.6715 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.4151, allocations: 6.719 kB / 0.6715 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.4151, allocations: 9.281 kB / 0.6715 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4151, allocations: 1.062 kB / 0.6715 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003995/0.4155, allocations: 360.9 kB / 0.6719 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.258e-05/0.4156, allocations: 94.53 kB / 0.672 GB, free: 500 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.4156, allocations: 10.17 kB / 0.672 GB, free: 492 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.4158, allocations: 19.41 kB / 0.672 GB, free: 480 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.4158, allocations: 13.89 kB / 0.672 GB, free: 472 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.4158, allocations: 3.406 kB / 0.672 GB, free: 472 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.436e-05/0.4159, allocations: 141.5 kB / 0.6721 GB, free: 364 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4159, allocations: 1.469 kB / 0.6721 GB, free: 364 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003245/0.4163, allocations: 30.84 kB / 0.6722 GB, free: 356 kB / 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.0006864/0.417, allocations: 0.8973 MB / 0.673 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003205/0.4173, allocations: 110 kB / 0.6732 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.4173, allocations: 0 / 0.6732 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.4175, allocations: 57.31 kB / 0.6732 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005489/0.418, allocations: 63.8 kB / 0.6733 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002684/0.4207, allocations: 2.265 MB / 0.6755 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.421, allocations: 0.7209 MB / 0.6762 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.872e-05/0.4211, allocations: 20.45 kB / 0.6762 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.999e-05/0.4212, allocations: 53.64 kB / 0.6763 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of SimCode: time 3.3e-07/0.4212, allocations: 0 / 0.6763 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02853/0.4498, allocations: 4.018 MB / 0.6802 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.801/8.25, allocations: 8.906 kB / 0.6802 GB, free: 10.62 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)