Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7703/0.7703, allocations: 127.4 MB / 134.6 MB, free: 4.062 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001299/0.001299, allocations: 193.2 kB / 164.4 MB, free: 6.863 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.856/1.856, allocations: 205.1 MB / 399.1 MB, free: 6.078 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001045/0.001045, allocations: 94.06 kB / 476.3 MB, free: 8.82 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.367/0.3681, allocations: 82.89 MB / 0.5461 GB, free: 42.62 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.5536, allocations: 76.75 MB / 0.621 GB, free: 13.79 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.262/1.815, allocations: 362.3 MB / 0.9748 GB, free: 119.5 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/1.816, allocations: 96.44 kB / 0.9749 GB, free: 119.5 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 1.053/2.868, allocations: 297.5 MB / 1.265 GB, free: 93.44 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/2.868, allocations: 12 kB / 1.265 GB, free: 93.43 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/2.87, allocations: 186.6 kB / 1.266 GB, free: 93.25 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002155/2.872, allocations: 0.665 MB / 1.266 GB, free: 92.56 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.71e-05/2.872, allocations: 23.98 kB / 1.266 GB, free: 92.54 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/2.872, allocations: 44 kB / 1.266 GB, free: 92.49 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008641/2.873, allocations: 406.5 kB / 1.267 GB, free: 92.09 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/2.874, allocations: 0.5695 MB / 1.267 GB, free: 91.48 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/2.874, allocations: 0 / 1.267 GB, free: 91.48 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.9e-05/2.874, allocations: 4 kB / 1.267 GB, free: 91.48 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/2.874, allocations: 15.98 kB / 1.267 GB, free: 91.46 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004428/2.879, allocations: 2.814 MB / 1.27 GB, free: 88.48 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006253/2.879, allocations: 314 kB / 1.27 GB, free: 88.17 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002763/2.88, allocations: 181 kB / 1.27 GB, free: 87.99 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002517/2.88, allocations: 101.3 kB / 1.271 GB, free: 87.88 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004047/2.88, allocations: 258.8 kB / 1.271 GB, free: 87.6 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=33): time 4.438e-06/2.88, allocations: 0 / 1.271 GB, free: 87.6 MB / 0.6355 GB Notification: Performance of matching and sorting (n=33): time 0.003833/2.884, allocations: 0.7732 MB / 1.272 GB, free: 86.82 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.568e-05/2.884, allocations: 144.8 kB / 1.272 GB, free: 86.65 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001275/2.886, allocations: 0.5943 MB / 1.272 GB, free: 86.05 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001623/2.886, allocations: 33.7 kB / 1.272 GB, free: 86.01 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003842/2.886, allocations: 319.7 kB / 1.273 GB, free: 85.69 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/2.886, allocations: 101.9 kB / 1.273 GB, free: 85.59 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.384e-05/2.886, allocations: 0 / 1.273 GB, free: 85.59 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001318/2.887, allocations: 330 kB / 1.273 GB, free: 85.27 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004318/2.887, allocations: 229.2 kB / 1.273 GB, free: 85.04 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005486/2.888, allocations: 414.2 kB / 1.274 GB, free: 84.56 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/2.889, allocations: 389 kB / 1.274 GB, free: 84.18 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.351e-06/2.889, allocations: 3.906 kB / 1.274 GB, free: 84.18 MB / 0.6355 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00214/2.891, allocations: 0.8232 MB / 1.275 GB, free: 83.35 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002728/2.892, allocations: 1.049 MB / 1.276 GB, free: 82.22 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/2.892, allocations: 0 / 1.276 GB, free: 82.22 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.996e-05/2.892, allocations: 8 kB / 1.276 GB, free: 82.21 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003244/2.895, allocations: 455.5 kB / 1.276 GB, free: 81.77 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002341/2.897, allocations: 1.996 MB / 1.278 GB, free: 79.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/2.899, allocations: 159.4 kB / 1.278 GB, free: 79.54 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/2.899, allocations: 35.97 kB / 1.278 GB, free: 79.51 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/2.899, allocations: 4 kB / 1.278 GB, free: 79.5 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001799/2.901, allocations: 0.6508 MB / 1.279 GB, free: 78.86 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/2.901, allocations: 4.031 kB / 1.279 GB, free: 78.85 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/2.901, allocations: 8 kB / 1.279 GB, free: 78.84 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008327/2.901, allocations: 167.8 kB / 1.279 GB, free: 78.68 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/2.901, allocations: 11.92 kB / 1.279 GB, free: 78.67 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/2.903, allocations: 127.4 kB / 1.279 GB, free: 78.54 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.541e-05/2.903, allocations: 35.97 kB / 1.279 GB, free: 78.51 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002703/2.903, allocations: 154.6 kB / 1.28 GB, free: 78.34 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/2.903, allocations: 82.97 kB / 1.28 GB, free: 78.26 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/2.905, allocations: 0.6436 MB / 1.28 GB, free: 77.61 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/2.905, allocations: 4 kB / 1.28 GB, free: 77.61 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/2.905, allocations: 4 kB / 1.28 GB, free: 77.61 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.497e-06/2.905, allocations: 3.984 kB / 1.28 GB, free: 77.6 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003286/2.909, allocations: 1.35 MB / 1.282 GB, free: 76.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/2.909, allocations: 0 / 1.282 GB, free: 76.21 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003039/2.912, allocations: 435.5 kB / 1.282 GB, free: 75.79 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/2.912, allocations: 0 / 1.282 GB, free: 75.79 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.939e-05/2.912, allocations: 11.98 kB / 1.282 GB, free: 75.78 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005749/2.917, allocations: 4.207 MB / 1.286 GB, free: 71.23 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/2.917, allocations: 3.938 kB / 1.286 GB, free: 71.23 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002311/2.92, allocations: 0.9939 MB / 1.287 GB, free: 70.22 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002714/2.923, allocations: 1.667 MB / 1.289 GB, free: 68.53 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005654/2.923, allocations: 220.8 kB / 1.289 GB, free: 68.29 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002487/2.923, allocations: 8 kB / 1.289 GB, free: 68.29 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/2.924, allocations: 111.8 kB / 1.289 GB, free: 68.18 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/2.925, allocations: 39.92 kB / 1.289 GB, free: 68.14 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.009e-05/2.925, allocations: 31.98 kB / 1.289 GB, free: 68.11 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0007053/2.925, allocations: 463 kB / 1.29 GB, free: 67.66 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.003457/2.929, allocations: 0.5493 MB / 1.29 GB, free: 67.11 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001124/2.93, allocations: 450.2 kB / 1.291 GB, free: 66.7 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.004936/2.935, allocations: 1.258 MB / 1.292 GB, free: 65.43 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/2.935, allocations: 0 / 1.292 GB, free: 65.43 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.003621/2.939, allocations: 0.6855 MB / 1.292 GB, free: 64.73 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/2.941, allocations: 306.3 kB / 1.293 GB, free: 64.45 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/2.944, allocations: 1.091 MB / 1.294 GB, free: 63.34 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007759/2.945, allocations: 1.084 MB / 1.295 GB, free: 62.22 MB / 0.6355 GB Notification: Performance of SimCode: time 1.333e-06/2.945, allocations: 0 / 1.295 GB, free: 62.22 MB / 0.6355 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)