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.008167/0.008167, allocations: 102.5 kB / 15.73 MB, free: 6.047 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.001859/0.001859, allocations: 196.8 kB / 16.68 MB, free: 5.961 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.148 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 0.9807/0.9807, allocations: 143 MB / 433.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 71.89 kB / 0.5951 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4224/0.4237, allocations: 82.02 MB / 0.6752 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.003584/0.4273, allocations: 1.819 MB / 0.6769 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.4287, allocations: 0.5399 MB / 0.6775 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002091/0.4289, allocations: 11.22 kB / 0.6775 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.4291, allocations: 24.92 kB / 0.6775 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.4292, allocations: 22.33 kB / 0.6775 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.4295, allocations: 69.72 kB / 0.6776 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002927/0.4299, allocations: 169.6 kB / 0.6778 GB, free: 15 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.43, allocations: 55.7 kB / 0.6778 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.4302, allocations: 54.38 kB / 0.6779 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.4303, allocations: 60.55 kB / 0.6779 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.921e-05/0.4303, allocations: 10.06 kB / 0.6779 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 2.506e-05/0.4304, allocations: 10.5 kB / 0.6779 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 3.991e-05/0.4304, allocations: 24.86 kB / 0.678 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 8.526e-05/0.4305, allocations: 62.95 kB / 0.678 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.4307, allocations: 148.9 kB / 0.6782 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.4308, allocations: 5.219 kB / 0.6782 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.923e-06/0.4308, allocations: 4 kB / 0.6782 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.469e-05/0.4308, allocations: 0 / 0.6782 GB, free: 14.7 MB / 0.5137 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.000989/0.4318, allocations: 473.5 kB / 0.6786 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 7.885e-05/0.4319, allocations: 8.75 kB / 0.6786 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.766e-05/0.432, allocations: 46.95 kB / 0.6787 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.898e-05/0.4321, allocations: 17.31 kB / 0.6787 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005429/0.4326, allocations: 236.5 kB / 0.6789 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.4326, allocations: 8.562 kB / 0.6789 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.4327, allocations: 12.19 kB / 0.6789 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004261/0.4331, allocations: 144.2 kB / 0.6791 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.4332, allocations: 4 kB / 0.6791 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.4332, allocations: 10.19 kB / 0.6791 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.4332, allocations: 2.781 kB / 0.6791 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002837/0.4335, allocations: 69.97 kB / 0.6792 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.4349, allocations: 0.7419 MB / 0.6799 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.4351, allocations: 49.39 kB / 0.6799 GB, free: 13 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.4352, allocations: 29.03 kB / 0.68 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.4353, allocations: 5.094 kB / 0.68 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002755/0.4356, allocations: 133.6 kB / 0.6801 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=11): time 2.334e-06/0.4356, allocations: 0 / 0.6801 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of matching and sorting (n=11): time 0.0005855/0.4362, allocations: 164.7 kB / 0.6802 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.068e-05/0.4363, allocations: 134.7 kB / 0.6804 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002496/0.4365, allocations: 200.5 kB / 0.6806 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.4366, allocations: 31.8 kB / 0.6806 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.4367, allocations: 127.7 kB / 0.6807 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.498e-05/0.4367, allocations: 28.48 kB / 0.6807 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.492e-05/0.4368, allocations: 48.73 kB / 0.6808 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001706/0.437, allocations: 331.4 kB / 0.6811 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.4372, allocations: 33.2 kB / 0.6811 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.4374, allocations: 152.4 kB / 0.6813 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003177/0.4377, allocations: 205.3 kB / 0.6815 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.4377, allocations: 1.094 kB / 0.6815 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000401/0.4381, allocations: 205.7 kB / 0.6817 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.4381, allocations: 11.47 kB / 0.6817 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4381, allocations: 3.188 kB / 0.6817 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.4382, allocations: 6.688 kB / 0.6817 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.4383, allocations: 39.05 kB / 0.6817 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.4383, allocations: 9.516 kB / 0.6817 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/0.4385, allocations: 31.42 kB / 0.6818 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.4385, allocations: 9.281 kB / 0.6818 GB, free: 11.36 MB / 0.5137 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.0001271/0.4387, allocations: 135.2 kB / 0.6819 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.362e-05/0.4387, allocations: 17.31 kB / 0.6819 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.802e-05/0.4388, allocations: 22.67 kB / 0.682 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.4388, allocations: 1.25 kB / 0.682 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.4388, allocations: 5.281 kB / 0.682 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.4388, allocations: 5.156 kB / 0.682 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000834/0.4396, allocations: 0.5142 MB / 0.6825 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4396, allocations: 1.188 kB / 0.6825 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.4398, allocations: 17.08 kB / 0.6825 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.4398, allocations: 4.938 kB / 0.6825 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.4398, allocations: 2.25 kB / 0.6825 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.4398, allocations: 5.125 kB / 0.6825 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.4398, allocations: 5.062 kB / 0.6825 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006133/0.4405, allocations: 358.1 kB / 0.6828 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.493e-05/0.4406, allocations: 101.6 kB / 0.6829 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.4406, allocations: 2.219 kB / 0.6829 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.4408, allocations: 14.95 kB / 0.683 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.4408, allocations: 17.48 kB / 0.683 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.4408, allocations: 4.406 kB / 0.683 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001513/0.441, allocations: 146 kB / 0.6831 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.441, allocations: 4 kB / 0.6831 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003512/0.4414, allocations: 30.88 kB / 0.6831 GB, free: 10.15 MB / 0.5137 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.0007841/0.4422, allocations: 0.8937 MB / 0.684 GB, free: 9.32 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003299/0.4425, allocations: 110 kB / 0.6841 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.4425, allocations: 1.531 kB / 0.6841 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.4427, allocations: 56.16 kB / 0.6842 GB, free: 9.25 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005778/0.4432, allocations: 78.66 kB / 0.6843 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/0.4462, allocations: 2.273 MB / 0.6865 GB, free: 7.211 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.4465, allocations: 0.7174 MB / 0.6872 GB, free: 6.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001067/0.4467, allocations: 23.16 kB / 0.6872 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.112e-05/0.4468, allocations: 53.05 kB / 0.6872 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of SimCode: time 6.31e-07/0.4468, allocations: 1.375 kB / 0.6873 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.472, allocations: 4.124 MB / 0.6913 GB, free: 4.375 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/8.15, allocations: 12.31 kB / 0.6913 GB, free: 4.367 MB / 0.5137 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)