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-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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(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.005396/0.005396, allocations: 99.69 kB / 15.73 MB, free: 5.555 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.001302/0.001302, allocations: 196.4 kB / 16.68 MB, free: 5.484 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.539/1.539, allocations: 222.9 MB / 240.4 MB, free: 4.375 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/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-master/package.mo): time 1.193/1.193, allocations: 143.3 MB / 433.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 67.89 kB / 0.5953 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.459/0.461, allocations: 82.02 MB / 0.6754 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.004206/0.4653, allocations: 1.813 MB / 0.6772 GB, free: 15.55 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.001553/0.4669, allocations: 0.5323 MB / 0.6777 GB, free: 15.12 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.467, allocations: 11.28 kB / 0.6777 GB, free: 15.12 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.4672, allocations: 24.89 kB / 0.6777 GB, free: 15.09 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 0.000121/0.4674, allocations: 30.19 kB / 0.6778 GB, free: 15.07 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.4677, allocations: 70.11 kB / 0.6778 GB, free: 15.01 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 0.0003553/0.4681, allocations: 176.8 kB / 0.678 GB, free: 14.9 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.4683, allocations: 43.12 kB / 0.6781 GB, free: 14.88 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.4684, allocations: 54.91 kB / 0.6781 GB, free: 14.85 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.4686, allocations: 65.05 kB / 0.6782 GB, free: 14.8 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 3.576e-05/0.4686, allocations: 9.938 kB / 0.6782 GB, free: 14.8 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 3.121e-05/0.4687, allocations: 10.62 kB / 0.6782 GB, free: 14.8 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 5.923e-05/0.4687, allocations: 29.09 kB / 0.6782 GB, free: 14.77 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.4689, allocations: 66.53 kB / 0.6783 GB, free: 14.72 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0002699/0.4691, allocations: 139.5 kB / 0.6784 GB, free: 14.62 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4692, allocations: 0 / 0.6784 GB, free: 14.62 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.434e-06/0.4692, allocations: 0.9688 kB / 0.6784 GB, free: 14.62 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.4692, allocations: 0 / 0.6784 GB, free: 14.62 MB / 0.5138 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.001098/0.4703, allocations: 489 kB / 0.6789 GB, free: 14.15 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/0.4703, allocations: 9.219 kB / 0.6789 GB, free: 14.15 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.609e-05/0.4704, allocations: 46.17 kB / 0.6789 GB, free: 14.1 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.618e-05/0.4705, allocations: 22.56 kB / 0.679 GB, free: 14.09 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004833/0.471, allocations: 235.9 kB / 0.6792 GB, free: 13.84 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.471, allocations: 8.219 kB / 0.6792 GB, free: 13.84 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5e-05/0.4711, allocations: 17.34 kB / 0.6792 GB, free: 13.83 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000459/0.4716, allocations: 152.8 kB / 0.6793 GB, free: 13.71 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.4716, allocations: 0 / 0.6793 GB, free: 13.71 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.4716, allocations: 6.156 kB / 0.6794 GB, free: 13.7 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.4716, allocations: 2.344 kB / 0.6794 GB, free: 13.7 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003904/0.472, allocations: 70.27 kB / 0.6794 GB, free: 13.67 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.4736, allocations: 0.7429 MB / 0.6801 GB, free: 12.94 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.4738, allocations: 49.05 kB / 0.6802 GB, free: 12.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.474, allocations: 33.44 kB / 0.6802 GB, free: 12.88 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.4741, allocations: 1.094 kB / 0.6802 GB, free: 12.88 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004106/0.4745, allocations: 128.4 kB / 0.6803 GB, free: 12.76 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=11): time 2.284e-06/0.4745, allocations: 1.125 kB / 0.6803 GB, free: 12.76 MB / 0.5138 GB Notification: Performance of matching and sorting (n=11): time 0.0007974/0.4753, allocations: 160.2 kB / 0.6805 GB, free: 12.67 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001418/0.4755, allocations: 135 kB / 0.6806 GB, free: 12.51 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00034/0.4758, allocations: 205.3 kB / 0.6808 GB, free: 12.35 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.4759, allocations: 30.77 kB / 0.6809 GB, free: 12.31 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.476, allocations: 132.6 kB / 0.681 GB, free: 12.19 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.4761, allocations: 37.22 kB / 0.681 GB, free: 12.16 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.4762, allocations: 39.48 kB / 0.6811 GB, free: 12.12 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0002167/0.4765, allocations: 334.7 kB / 0.6814 GB, free: 11.79 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.4767, allocations: 41.94 kB / 0.6814 GB, free: 11.77 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003581/0.4771, allocations: 147.2 kB / 0.6816 GB, free: 11.61 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000594/0.4777, allocations: 209.2 kB / 0.6818 GB, free: 11.41 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.4777, allocations: 1.281 kB / 0.6818 GB, free: 11.41 MB / 0.5138 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006849/0.4784, allocations: 206.9 kB / 0.682 GB, free: 11.29 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.4784, allocations: 6.375 kB / 0.682 GB, free: 11.29 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.4785, allocations: 3.375 kB / 0.682 GB, free: 11.29 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.707e-05/0.4785, allocations: 5.469 kB / 0.682 GB, free: 11.29 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002255/0.4787, allocations: 39.91 kB / 0.682 GB, free: 11.27 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.776e-05/0.4788, allocations: 8.812 kB / 0.682 GB, free: 11.27 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.479, allocations: 24.34 kB / 0.682 GB, free: 11.26 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.479, allocations: 17.2 kB / 0.6821 GB, free: 11.25 MB / 0.5138 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.0001701/0.4792, allocations: 135.7 kB / 0.6822 GB, free: 11.12 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.715e-05/0.4793, allocations: 16.12 kB / 0.6822 GB, free: 11.11 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.367e-05/0.4793, allocations: 23.05 kB / 0.6822 GB, free: 11.09 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.4794, allocations: 2.5 kB / 0.6822 GB, free: 11.09 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.4794, allocations: 1.219 kB / 0.6822 GB, free: 11.09 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.4794, allocations: 1.25 kB / 0.6822 GB, free: 11.09 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001287/0.4807, allocations: 0.5137 MB / 0.6827 GB, free: 10.61 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.4807, allocations: 1.469 kB / 0.6827 GB, free: 10.61 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.4809, allocations: 24.45 kB / 0.6828 GB, free: 10.59 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.4809, allocations: 5.25 kB / 0.6828 GB, free: 10.59 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.4809, allocations: 2.906 kB / 0.6828 GB, free: 10.59 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.127e-06/0.481, allocations: 9.328 kB / 0.6828 GB, free: 10.58 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.481, allocations: 1.344 kB / 0.6828 GB, free: 10.58 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008366/0.4818, allocations: 360.9 kB / 0.6831 GB, free: 10.29 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.4819, allocations: 93.92 kB / 0.6832 GB, free: 10.18 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.482, allocations: 6.156 kB / 0.6832 GB, free: 10.18 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.4823, allocations: 14.73 kB / 0.6832 GB, free: 10.17 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.031e-05/0.4824, allocations: 13.61 kB / 0.6832 GB, free: 10.16 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.4824, allocations: 4.531 kB / 0.6832 GB, free: 10.16 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.0002021/0.4826, allocations: 146.4 kB / 0.6834 GB, free: 10.05 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.7e-07/0.4826, allocations: 0 / 0.6834 GB, free: 10.05 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0006064/0.4833, allocations: 30.83 kB / 0.6834 GB, free: 10.04 MB / 0.5138 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.001224/0.4845, allocations: 0.895 MB / 0.6843 GB, free: 9.215 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.000494/0.485, allocations: 112.4 kB / 0.6844 GB, free: 9.168 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.485, allocations: 1.25 kB / 0.6844 GB, free: 9.168 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.4853, allocations: 49.22 kB / 0.6844 GB, free: 9.148 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009583/0.4863, allocations: 85.86 kB / 0.6845 GB, free: 9.098 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004288/0.4906, allocations: 2.275 MB / 0.6867 GB, free: 7.094 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005372/0.4911, allocations: 0.7249 MB / 0.6875 GB, free: 6.375 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.0001326/0.4913, allocations: 16.09 kB / 0.6875 GB, free: 6.367 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.4914, allocations: 49.8 kB / 0.6875 GB, free: 6.328 MB / 0.5138 GB Notification: Performance of SimCode: time 7.21e-07/0.4914, allocations: 0 / 0.6875 GB, free: 6.328 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03773/0.5292, allocations: 4.049 MB / 0.6915 GB, free: 4.309 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.12/8.649, allocations: 8.484 kB / 0.6915 GB, free: 4.305 MB / 0.5138 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)