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.001145/0.001145, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 194 kB / 16.53 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8056/0.8056, allocations: 132.2 MB / 422.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002195/0.002195, allocations: 67.89 kB / 0.5019 GB, free: 3.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4692/0.4714, allocations: 80.2 MB / 0.5802 GB, free: 4.547 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002986/0.4744, allocations: 1.814 MB / 0.582 GB, free: 3.27 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008798/0.4753, allocations: 0.5463 MB / 0.5825 GB, free: 2.879 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.776e-05/0.4754, allocations: 6.875 kB / 0.5825 GB, free: 2.875 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.4756, allocations: 29.75 kB / 0.5825 GB, free: 2.852 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.572e-05/0.4757, allocations: 20.95 kB / 0.5825 GB, free: 2.836 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.4759, allocations: 64.77 kB / 0.5826 GB, free: 2.805 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002156/0.4761, allocations: 173.7 kB / 0.5828 GB, free: 2.723 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.4763, allocations: 51.3 kB / 0.5828 GB, free: 2.699 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.508e-05/0.4764, allocations: 54.08 kB / 0.5829 GB, free: 2.672 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.092e-05/0.4765, allocations: 61.08 kB / 0.5829 GB, free: 2.637 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.684e-05/0.4765, allocations: 10.31 kB / 0.5829 GB, free: 2.637 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.852e-05/0.4765, allocations: 10.31 kB / 0.583 GB, free: 2.637 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.689e-05/0.4766, allocations: 28.83 kB / 0.583 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.859e-05/0.4767, allocations: 69.2 kB / 0.583 GB, free: 2.57 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.4769, allocations: 131.6 kB / 0.5832 GB, free: 2.508 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.4769, allocations: 0 / 0.5832 GB, free: 2.508 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4769, allocations: 1.094 kB / 0.5832 GB, free: 2.508 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.4769, allocations: 0 / 0.5832 GB, free: 2.508 MB / 430.1 MB 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.0007222/0.4776, allocations: 472.9 kB / 0.5836 GB, free: 2.082 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.4777, allocations: 10.16 kB / 0.5836 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.288e-05/0.4778, allocations: 50.02 kB / 0.5837 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.202e-05/0.4778, allocations: 20.75 kB / 0.5837 GB, free: 2.02 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.4781, allocations: 223.5 kB / 0.5839 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.4781, allocations: 9.156 kB / 0.5839 GB, free: 1.793 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.4781, allocations: 13.12 kB / 0.5839 GB, free: 1.789 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.4785, allocations: 150.8 kB / 0.5841 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.4785, allocations: 0 / 0.5841 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.4785, allocations: 7.359 kB / 0.5841 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.4785, allocations: 1.875 kB / 0.5841 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002473/0.4788, allocations: 73.16 kB / 0.5842 GB, free: 1.66 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008192/0.4796, allocations: 0.7417 MB / 0.5849 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001516/0.4798, allocations: 52.67 kB / 0.5849 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.4799, allocations: 34.83 kB / 0.585 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.4799, allocations: 0.7812 kB / 0.585 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002803/0.4802, allocations: 134.8 kB / 0.5851 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.243e-06/0.4802, allocations: 0 / 0.5851 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005147/0.4807, allocations: 165.3 kB / 0.5853 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.4808, allocations: 135.8 kB / 0.5854 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.481, allocations: 203.5 kB / 0.5856 GB, free: 468 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.481, allocations: 27.73 kB / 0.5856 GB, free: 436 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.312e-05/0.4811, allocations: 137.7 kB / 0.5857 GB, free: 308 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.837e-05/0.4811, allocations: 31.69 kB / 0.5858 GB, free: 284 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.226e-05/0.4812, allocations: 40.17 kB / 0.5858 GB, free: 256 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.4813, allocations: 332.6 kB / 0.5861 GB, free: 15.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.4814, allocations: 37.14 kB / 0.5862 GB, free: 15.92 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002193/0.4817, allocations: 151.7 kB / 0.5863 GB, free: 15.76 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003417/0.482, allocations: 201.2 kB / 0.5865 GB, free: 15.57 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.482, allocations: 1.062 kB / 0.5865 GB, free: 15.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004653/0.4825, allocations: 204 kB / 0.5867 GB, free: 15.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.4825, allocations: 8.328 kB / 0.5867 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.4825, allocations: 8.281 kB / 0.5867 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.4826, allocations: 4.562 kB / 0.5867 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.4827, allocations: 37.38 kB / 0.5867 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.928e-05/0.4827, allocations: 10.39 kB / 0.5868 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.4829, allocations: 27.81 kB / 0.5868 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.4829, allocations: 13.06 kB / 0.5868 GB, free: 15.45 MB / 446.1 MB 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 0.0001365/0.4831, allocations: 138.3 kB / 0.5869 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.981e-05/0.4831, allocations: 16.91 kB / 0.5869 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.858e-05/0.4832, allocations: 25.92 kB / 0.587 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.4832, allocations: 1.875 kB / 0.587 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.4832, allocations: 1.781 kB / 0.587 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.4832, allocations: 1.641 kB / 0.587 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008966/0.4841, allocations: 0.5069 MB / 0.5875 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4841, allocations: 4.75 kB / 0.5875 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.4843, allocations: 20.36 kB / 0.5875 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.4843, allocations: 1 kB / 0.5875 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.4843, allocations: 3.688 kB / 0.5875 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.735e-06/0.4843, allocations: 13.83 kB / 0.5875 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.4843, allocations: 4.906 kB / 0.5875 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006262/0.485, allocations: 355.6 kB / 0.5879 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.739e-05/0.4851, allocations: 100 kB / 0.5879 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.206e-05/0.4851, allocations: 3.625 kB / 0.5879 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.4853, allocations: 14.94 kB / 0.588 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.202e-05/0.4854, allocations: 22.36 kB / 0.588 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.4854, allocations: 4.578 kB / 0.588 GB, free: 14.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001969/0.4856, allocations: 142.7 kB / 0.5881 GB, free: 14.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4856, allocations: 0 / 0.5881 GB, free: 14.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003577/0.486, allocations: 27.47 kB / 0.5882 GB, free: 14.36 MB / 446.1 MB 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.001039/0.487, allocations: 0.8976 MB / 0.589 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003943/0.4874, allocations: 119.5 kB / 0.5891 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4874, allocations: 1.375 kB / 0.5891 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.4876, allocations: 47.69 kB / 0.5892 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005943/0.4882, allocations: 62.19 kB / 0.5892 GB, free: 13.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003025/0.4912, allocations: 2.257 MB / 0.5915 GB, free: 11.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004277/0.4917, allocations: 0.7246 MB / 0.5922 GB, free: 10.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.4918, allocations: 19.58 kB / 0.5922 GB, free: 10.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.4919, allocations: 51.39 kB / 0.5922 GB, free: 10.87 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4919, allocations: 0 / 0.5922 GB, free: 10.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.515, allocations: 3.971 MB / 0.5961 GB, free: 9.898 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.379/7.894, allocations: 7.375 kB / 0.5961 GB, free: 9.898 MB / 446.1 MB (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)