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.001539/0.001539, allocations: 111.9 kB / 15.61 MB, free: 128 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.001926/0.001926, allocations: 196.5 kB / 16.54 MB, free: 6.668 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.416/1.416, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9947/0.9947, allocations: 135.1 MB / 425.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 69.11 kB / 0.5054 GB, free: 5.203 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1689, allocations: 80.93 MB / 0.5845 GB, free: 4.426 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003646/0.1726, allocations: 1.797 MB / 0.5862 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.1737, allocations: 0.5338 MB / 0.5868 GB, free: 2.07 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.1739, allocations: 7.938 kB / 0.5868 GB, free: 2.062 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.1742, allocations: 27.72 kB / 0.5868 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.1743, allocations: 23.73 kB / 0.5868 GB, free: 2.012 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002808/0.1746, allocations: 67.84 kB / 0.5869 GB, free: 1.945 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002713/0.1748, allocations: 167.5 kB / 0.587 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.175, allocations: 61.62 kB / 0.5871 GB, free: 1.719 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.502e-05/0.1751, allocations: 51.73 kB / 0.5871 GB, free: 1.668 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.231e-05/0.1752, allocations: 59.69 kB / 0.5872 GB, free: 1.609 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.085e-05/0.1753, allocations: 8 kB / 0.5872 GB, free: 1.602 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.656e-05/0.1753, allocations: 12 kB / 0.5872 GB, free: 1.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.1753, allocations: 31.84 kB / 0.5872 GB, free: 1.559 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.747e-05/0.1754, allocations: 63.61 kB / 0.5873 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.1756, allocations: 131.8 kB / 0.5874 GB, free: 1.367 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1757, allocations: 3.938 kB / 0.5874 GB, free: 1.363 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1757, allocations: 0 / 0.5874 GB, free: 1.363 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.1757, allocations: 0 / 0.5874 GB, free: 1.363 MB / 494.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.0007524/0.1764, allocations: 470.7 kB / 0.5879 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1765, allocations: 8.031 kB / 0.5879 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.494e-05/0.1766, allocations: 46.73 kB / 0.5879 GB, free: 0.793 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.42e-05/0.1766, allocations: 28.69 kB / 0.588 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002777/0.1769, allocations: 229.2 kB / 0.5882 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.1769, allocations: 8.375 kB / 0.5882 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.446e-05/0.177, allocations: 12.38 kB / 0.5882 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002991/0.1773, allocations: 149.6 kB / 0.5883 GB, free: 328 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1773, allocations: 0 / 0.5883 GB, free: 328 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.1773, allocations: 12 kB / 0.5884 GB, free: 316 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1773, allocations: 0 / 0.5884 GB, free: 316 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002337/0.1776, allocations: 71.88 kB / 0.5884 GB, free: 244 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009314/0.1785, allocations: 0.7508 MB / 0.5892 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001514/0.1787, allocations: 42.56 kB / 0.5892 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.1788, allocations: 36.83 kB / 0.5892 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.1788, allocations: 4 kB / 0.5892 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002947/0.1791, allocations: 126.7 kB / 0.5894 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 3.376e-06/0.1791, allocations: 0 / 0.5894 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0005279/0.1797, allocations: 169.5 kB / 0.5895 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/0.1798, allocations: 140.5 kB / 0.5897 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.18, allocations: 198.9 kB / 0.5898 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.18, allocations: 25.7 kB / 0.5899 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.229e-05/0.1801, allocations: 135.8 kB / 0.59 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.1801, allocations: 43.59 kB / 0.59 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.956e-05/0.1802, allocations: 41.77 kB / 0.5901 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.1803, allocations: 326.8 kB / 0.5904 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.1805, allocations: 39.97 kB / 0.5904 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.1807, allocations: 150.6 kB / 0.5906 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.181, allocations: 202.3 kB / 0.5908 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.181, allocations: 0 / 0.5908 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003957/0.1814, allocations: 209 kB / 0.591 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.1814, allocations: 4 kB / 0.591 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1814, allocations: 4 kB / 0.591 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.1814, allocations: 8.5 kB / 0.591 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.1816, allocations: 39.92 kB / 0.591 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.1816, allocations: 4 kB / 0.591 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.1817, allocations: 27.83 kB / 0.5911 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.1818, allocations: 8 kB / 0.5911 GB, free: 13.26 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 0.0001021/0.1819, allocations: 141.6 kB / 0.5912 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.315e-05/0.1819, allocations: 19.72 kB / 0.5912 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.536e-05/0.182, allocations: 21.39 kB / 0.5912 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.182, allocations: 4 kB / 0.5912 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.182, allocations: 4 kB / 0.5912 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.182, allocations: 0 / 0.5912 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007248/0.1827, allocations: 0.5094 MB / 0.5917 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1827, allocations: 7.938 kB / 0.5917 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.1829, allocations: 19.98 kB / 0.5918 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.1829, allocations: 3.938 kB / 0.5918 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.1829, allocations: 4 kB / 0.5918 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1829, allocations: 3.938 kB / 0.5918 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1829, allocations: 0 / 0.5918 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000501/0.1834, allocations: 360.4 kB / 0.5921 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.687e-05/0.1835, allocations: 93.23 kB / 0.5922 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.872e-05/0.1835, allocations: 8.031 kB / 0.5922 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.1837, allocations: 20.02 kB / 0.5922 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.294e-05/0.1838, allocations: 15.97 kB / 0.5923 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.729e-06/0.1838, allocations: 4 kB / 0.5923 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001115/0.1839, allocations: 144.6 kB / 0.5924 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.1839, allocations: 0 / 0.5924 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003422/0.1843, allocations: 28 kB / 0.5924 GB, free: 11.75 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.0008173/0.1851, allocations: 0.9054 MB / 0.5933 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003673/0.1855, allocations: 120.6 kB / 0.5934 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.1855, allocations: 8.062 kB / 0.5934 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.1857, allocations: 51.84 kB / 0.5935 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005723/0.1862, allocations: 55.73 kB / 0.5935 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002635/0.1889, allocations: 2.265 MB / 0.5957 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002442/0.1891, allocations: 0.7203 MB / 0.5964 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.527e-05/0.1892, allocations: 21.55 kB / 0.5965 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.431e-05/0.1893, allocations: 47.42 kB / 0.5965 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1893, allocations: 0 / 0.5965 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02144/0.2108, allocations: 3.956 MB / 0.6004 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.421/7.632, allocations: 10.45 kB / 0.6004 GB, free: 3.465 MB / 0.4981 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)