Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_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.001232/0.001232, allocations: 108 kB / 15.61 MB, free: 152 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.001227/0.001227, allocations: 197.9 kB / 16.53 MB, free: 6.664 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0025/0.0025, allocations: 279 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.063/1.063, allocations: 178.6 MB / 0.5073 GB, free: 4.586 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002763/0.002763, allocations: 101.4 kB / 0.6065 GB, free: 24.6 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1702, allocations: 89.14 MB / 0.6936 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003876/0.1742, allocations: 1.83 MB / 0.6954 GB, free: 2.387 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.1755, allocations: 0.5462 MB / 0.6959 GB, free: 1.836 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.1756, allocations: 0.6562 kB / 0.6959 GB, free: 1.836 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.1758, allocations: 23.73 kB / 0.6959 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.024e-05/0.1759, allocations: 29.44 kB / 0.696 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002362/0.1762, allocations: 71.8 kB / 0.696 GB, free: 1.715 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002472/0.1764, allocations: 175.5 kB / 0.6962 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.1766, allocations: 49.92 kB / 0.6962 GB, free: 1.492 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.111e-05/0.1767, allocations: 47.8 kB / 0.6963 GB, free: 1.445 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.318e-05/0.1768, allocations: 55.64 kB / 0.6963 GB, free: 1.391 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.1768, allocations: 12 kB / 0.6964 GB, free: 1.379 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.588e-05/0.1768, allocations: 12 kB / 0.6964 GB, free: 1.367 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.94e-05/0.1769, allocations: 35.84 kB / 0.6964 GB, free: 1.332 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.177, allocations: 71.53 kB / 0.6965 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.1772, allocations: 119.5 kB / 0.6966 GB, free: 1.145 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1772, allocations: 0 / 0.6966 GB, free: 1.145 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1772, allocations: 0 / 0.6966 GB, free: 1.145 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1772, allocations: 0 / 0.6966 GB, free: 1.145 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.0007818/0.178, allocations: 486.5 kB / 0.6971 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1781, allocations: 12.03 kB / 0.6971 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.193e-05/0.1781, allocations: 42.73 kB / 0.6971 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.518e-05/0.1782, allocations: 16.75 kB / 0.6971 GB, free: 0.543 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.1785, allocations: 232.4 kB / 0.6973 GB, free: 284 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.1785, allocations: 8.375 kB / 0.6973 GB, free: 276 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.1786, allocations: 12.38 kB / 0.6974 GB, free: 264 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.1789, allocations: 159.5 kB / 0.6975 GB, free: 84 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1789, allocations: 3.938 kB / 0.6975 GB, free: 80 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.1789, allocations: 3.984 kB / 0.6975 GB, free: 76 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1789, allocations: 4 kB / 0.6975 GB, free: 72 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002466/0.1792, allocations: 79.94 kB / 0.6976 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009697/0.1802, allocations: 0.7314 MB / 0.6983 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.1803, allocations: 50.55 kB / 0.6984 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.1804, allocations: 36.83 kB / 0.6984 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.1805, allocations: 0 / 0.6984 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003188/0.1808, allocations: 122.7 kB / 0.6985 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.1808, allocations: 4 kB / 0.6985 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004911/0.1813, allocations: 165.3 kB / 0.6987 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.234e-05/0.1814, allocations: 132.5 kB / 0.6988 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.1816, allocations: 206.8 kB / 0.699 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.1817, allocations: 29.7 kB / 0.699 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.1818, allocations: 128.2 kB / 0.6992 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.062e-05/0.1818, allocations: 43.59 kB / 0.6992 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.606e-05/0.1819, allocations: 41.7 kB / 0.6992 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.182, allocations: 326.8 kB / 0.6995 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.1822, allocations: 39.97 kB / 0.6996 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.1824, allocations: 151.6 kB / 0.6997 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.1827, allocations: 202.3 kB / 0.6999 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1828, allocations: 4 kB / 0.6999 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00041/0.1832, allocations: 201.5 kB / 0.7001 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.1832, allocations: 8 kB / 0.7001 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.1832, allocations: 12.02 kB / 0.7001 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1832, allocations: 4 kB / 0.7001 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.1834, allocations: 31.92 kB / 0.7002 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.1834, allocations: 8 kB / 0.7002 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.1835, allocations: 27.83 kB / 0.7002 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.1836, allocations: 8 kB / 0.7002 GB, free: 13.04 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.0001208/0.1837, allocations: 142.3 kB / 0.7003 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/0.1837, allocations: 19.81 kB / 0.7004 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.922e-05/0.1838, allocations: 21.41 kB / 0.7004 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.1838, allocations: 0 / 0.7004 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.1838, allocations: 7.984 kB / 0.7004 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1838, allocations: 4.172 kB / 0.7004 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007829/0.1846, allocations: 0.5132 MB / 0.7009 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1846, allocations: 0 / 0.7009 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.1847, allocations: 16.3 kB / 0.7009 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.1848, allocations: 4 kB / 0.7009 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.1848, allocations: 8 kB / 0.7009 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.1848, allocations: 7.938 kB / 0.7009 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.1848, allocations: 0 / 0.7009 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005478/0.1854, allocations: 365.8 kB / 0.7013 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.389e-05/0.1854, allocations: 92.92 kB / 0.7014 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.587e-05/0.1855, allocations: 4 kB / 0.7014 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.1856, allocations: 19.95 kB / 0.7014 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.1857, allocations: 15.98 kB / 0.7014 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.1857, allocations: 4 kB / 0.7014 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001179/0.1858, allocations: 144.5 kB / 0.7016 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1858, allocations: 0 / 0.7016 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003316/0.1862, allocations: 31.94 kB / 0.7016 GB, free: 11.52 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.0008532/0.187, allocations: 0.8941 MB / 0.7025 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003316/0.1874, allocations: 120.1 kB / 0.7026 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1874, allocations: 0 / 0.7026 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.1875, allocations: 47.91 kB / 0.7026 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005357/0.1881, allocations: 66.16 kB / 0.7027 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.1907, allocations: 2.263 MB / 0.7049 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.191, allocations: 0.7241 MB / 0.7056 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.039e-05/0.1911, allocations: 25.67 kB / 0.7056 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.721e-05/0.1912, allocations: 47.42 kB / 0.7057 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of SimCode: time 3.2e-07/0.1912, allocations: 4 kB / 0.7057 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.2172, allocations: 3.982 MB / 0.7096 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.45/7.667, allocations: 19.67 kB / 0.7096 GB, free: 3.215 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)