Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.001485/0.001485, 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.001925/0.001925, allocations: 197.1 kB / 16.54 MB, free: 6.672 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.434/1.434, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.101/1.101, allocations: 143 MB / 433.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 71.91 kB / 0.5143 GB, free: 11.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.1812, allocations: 82.04 MB / 0.5944 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.003015/0.1843, allocations: 1.803 MB / 0.5962 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008977/0.1852, allocations: 0.5299 MB / 0.5967 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.548e-05/0.1853, allocations: 4 kB / 0.5967 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.1855, allocations: 27.67 kB / 0.5967 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.013e-05/0.1856, allocations: 31.72 kB / 0.5967 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002056/0.1858, allocations: 63.91 kB / 0.5968 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002099/0.186, allocations: 171.4 kB / 0.597 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.1862, allocations: 49.66 kB / 0.597 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.612e-05/0.1862, allocations: 55.78 kB / 0.5971 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.99e-05/0.1863, allocations: 63.56 kB / 0.5971 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.1864, allocations: 12 kB / 0.5971 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.112e-05/0.1864, allocations: 8 kB / 0.5971 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.078e-05/0.1864, allocations: 23.92 kB / 0.5972 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.237e-05/0.1865, allocations: 63.61 kB / 0.5972 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.1867, allocations: 139.7 kB / 0.5974 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1867, allocations: 0 / 0.5974 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1867, allocations: 0 / 0.5974 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.1867, allocations: 3.938 kB / 0.5974 GB, free: 6.449 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.0007179/0.1874, allocations: 474.7 kB / 0.5978 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.1875, allocations: 12.03 kB / 0.5978 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.834e-05/0.1875, allocations: 46.73 kB / 0.5979 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.1876, allocations: 16.75 kB / 0.5979 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.1878, allocations: 227.9 kB / 0.5981 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.1879, allocations: 8.375 kB / 0.5981 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.1879, allocations: 16.36 kB / 0.5981 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002905/0.1882, allocations: 153.1 kB / 0.5983 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.1882, allocations: 3.938 kB / 0.5983 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.1882, allocations: 8 kB / 0.5983 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.1882, allocations: 4 kB / 0.5983 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00023/0.1885, allocations: 75.14 kB / 0.5984 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008559/0.1893, allocations: 0.7431 MB / 0.5991 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.1895, allocations: 50.55 kB / 0.5991 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.1896, allocations: 32.78 kB / 0.5992 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.1896, allocations: 3.984 kB / 0.5992 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002806/0.1899, allocations: 130.7 kB / 0.5993 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.1899, allocations: 0 / 0.5993 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004749/0.1904, allocations: 161.3 kB / 0.5995 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/0.1905, allocations: 136.8 kB / 0.5996 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/0.1907, allocations: 199.6 kB / 0.5998 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.1908, allocations: 33.7 kB / 0.5998 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.237e-05/0.1909, allocations: 127.9 kB / 0.5999 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.654e-05/0.1909, allocations: 39.59 kB / 0.6 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.959e-05/0.191, allocations: 41.72 kB / 0.6 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1911, allocations: 326.8 kB / 0.6003 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.1912, allocations: 43.97 kB / 0.6004 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.1915, allocations: 153.4 kB / 0.6005 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.1918, allocations: 194.4 kB / 0.6007 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.1918, allocations: 4 kB / 0.6007 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003926/0.1922, allocations: 205.2 kB / 0.6009 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1922, allocations: 8 kB / 0.6009 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.1922, allocations: 4 kB / 0.6009 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.1923, allocations: 4 kB / 0.6009 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.1924, allocations: 35.91 kB / 0.6009 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.1924, allocations: 7.938 kB / 0.6009 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/0.1926, allocations: 32.14 kB / 0.601 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.1926, allocations: 8 kB / 0.601 GB, free: 2.352 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.0001243/0.1927, allocations: 141.7 kB / 0.6011 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/0.1928, allocations: 19.8 kB / 0.6011 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.772e-05/0.1928, allocations: 17.64 kB / 0.6012 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.1928, allocations: 11.92 kB / 0.6012 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1928, allocations: 3.938 kB / 0.6012 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1928, allocations: 0 / 0.6012 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007398/0.1936, allocations: 0.5171 MB / 0.6017 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1936, allocations: 0 / 0.6017 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.1937, allocations: 15.98 kB / 0.6017 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1937, allocations: 0 / 0.6017 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.1937, allocations: 7.984 kB / 0.6017 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.1938, allocations: 8.188 kB / 0.6017 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1938, allocations: 8 kB / 0.6017 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000499/0.1943, allocations: 356.2 kB / 0.6021 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.826e-05/0.1943, allocations: 92.92 kB / 0.6021 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.918e-05/0.1944, allocations: 4 kB / 0.6021 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.1945, allocations: 19.97 kB / 0.6022 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.988e-05/0.1946, allocations: 11.92 kB / 0.6022 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.1946, allocations: 7.984 kB / 0.6022 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001114/0.1947, allocations: 148.3 kB / 0.6023 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1947, allocations: 0 / 0.6023 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003433/0.1951, allocations: 28 kB / 0.6024 GB, free: 0.8359 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.271/0.4661, allocations: 0.8885 MB / 0.6032 GB, free: 43.67 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005767/0.4668, allocations: 116.7 kB / 0.6033 GB, free: 43.67 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.4668, allocations: 0 / 0.6033 GB, free: 43.67 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.467, allocations: 54.42 kB / 0.6034 GB, free: 43.67 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007057/0.4677, allocations: 62.33 kB / 0.6034 GB, free: 43.67 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.4696, allocations: 2.261 MB / 0.6057 GB, free: 42.07 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001252/0.4698, allocations: 0.7282 MB / 0.6064 GB, free: 41.37 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.281e-05/0.4699, allocations: 19.44 kB / 0.6064 GB, free: 41.37 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.379e-05/0.4699, allocations: 50.73 kB / 0.6064 GB, free: 41.36 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.4699, allocations: 0 / 0.6064 GB, free: 41.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02/0.4899, allocations: 3.992 MB / 0.6103 GB, free: 40.99 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.566/8.056, allocations: 5.656 kB / 0.6103 GB, free: 40.98 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.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 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)