Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7247/0.7247, allocations: 141.8 MB / 149.1 MB, free: 13.17 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 180.7 kB / 181.9 MB, free: 9.867 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 221.3 MB / 436 MB, free: 2.305 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009959/0.0009959, allocations: 105.2 kB / 0.507 GB, free: 11.11 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001749/0.001749, allocations: 275.9 kB / 0.5884 GB, free: 7.922 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4123/0.4141, allocations: 89.64 MB / 0.676 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1737/0.5878, allocations: 82.79 MB / 0.7568 GB, free: 119.4 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6901/1.278, allocations: 359.4 MB / 1.108 GB, free: 8.633 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/1.278, allocations: 95.86 kB / 1.108 GB, free: 8.582 MB / 0.6669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.9924/2.271, allocations: 307.7 MB / 1.408 GB, free: 14.52 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/2.271, allocations: 17 kB / 1.408 GB, free: 14.5 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004025/2.271, allocations: 122.6 kB / 1.409 GB, free: 14.38 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/2.273, allocations: 0.6725 MB / 1.409 GB, free: 13.66 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.938e-05/2.273, allocations: 16 kB / 1.409 GB, free: 13.65 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/2.273, allocations: 43.91 kB / 1.409 GB, free: 13.61 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007619/2.274, allocations: 402.5 kB / 1.41 GB, free: 13.21 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008328/2.274, allocations: 0.5779 MB / 1.41 GB, free: 12.59 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/2.275, allocations: 0 / 1.41 GB, free: 12.59 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.589e-05/2.275, allocations: 4 kB / 1.41 GB, free: 12.59 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/2.275, allocations: 12 kB / 1.41 GB, free: 12.58 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003341/2.278, allocations: 2.462 MB / 1.413 GB, free: 10.01 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004989/2.278, allocations: 347 kB / 1.413 GB, free: 9.656 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002596/2.279, allocations: 184.8 kB / 1.413 GB, free: 9.473 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000342/2.279, allocations: 344.4 kB / 1.414 GB, free: 9.062 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003619/2.279, allocations: 318.2 kB / 1.414 GB, free: 8.719 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=37): time 3.016e-06/2.279, allocations: 3.984 kB / 1.414 GB, free: 8.715 MB / 0.6982 GB Notification: Performance of matching and sorting (n=37): time 0.001563/2.281, allocations: 0.5513 MB / 1.414 GB, free: 8.156 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/2.281, allocations: 247.5 kB / 1.415 GB, free: 7.859 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007241/2.282, allocations: 0.5946 MB / 1.415 GB, free: 7.258 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 6.552e-05/2.282, allocations: 33.64 kB / 1.415 GB, free: 7.219 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/2.282, allocations: 308 kB / 1.416 GB, free: 6.914 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 9.259e-05/2.282, allocations: 122.4 kB / 1.416 GB, free: 6.793 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/2.282, allocations: 0 / 1.416 GB, free: 6.793 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.3e-05/2.282, allocations: 326 kB / 1.416 GB, free: 6.469 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/2.283, allocations: 193.3 kB / 1.416 GB, free: 6.281 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003829/2.283, allocations: 375.9 kB / 1.416 GB, free: 5.832 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009085/2.284, allocations: 329 kB / 1.417 GB, free: 5.508 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/2.284, allocations: 4 kB / 1.417 GB, free: 5.504 MB / 0.6982 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001506/2.285, allocations: 0.6981 MB / 1.417 GB, free: 4.805 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002262/2.286, allocations: 1.058 MB / 1.419 GB, free: 3.664 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/2.286, allocations: 3.938 kB / 1.419 GB, free: 3.66 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/2.286, allocations: 8 kB / 1.419 GB, free: 3.652 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/2.287, allocations: 159.8 kB / 1.419 GB, free: 3.496 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008559/2.288, allocations: 1.805 MB / 1.42 GB, free: 1.621 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000885/2.289, allocations: 111.5 kB / 1.421 GB, free: 1.512 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.4e-05/2.289, allocations: 31.98 kB / 1.421 GB, free: 1.48 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/2.289, allocations: 4 kB / 1.421 GB, free: 1.477 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001227/2.29, allocations: 0.5647 MB / 1.421 GB, free: 0.9102 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/2.29, allocations: 4 kB / 1.421 GB, free: 0.9062 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.094e-06/2.29, allocations: 4 kB / 1.421 GB, free: 0.9023 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005329/2.29, allocations: 136.1 kB / 1.421 GB, free: 0.7695 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/2.29, allocations: 8 kB / 1.421 GB, free: 0.7617 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007637/2.291, allocations: 99.52 kB / 1.421 GB, free: 0.6641 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.034e-05/2.291, allocations: 35.98 kB / 1.421 GB, free: 0.6289 MB / 0.6982 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.0001874/2.292, allocations: 158.5 kB / 1.422 GB, free: 472 kB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/2.292, allocations: 82.97 kB / 1.422 GB, free: 388 kB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3131/2.605, allocations: 0.6817 MB / 1.422 GB, free: 213.9 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/2.605, allocations: 3.688 kB / 1.422 GB, free: 213.9 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.098e-06/2.605, allocations: 3.312 kB / 1.422 GB, free: 213.9 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/2.605, allocations: 10.09 kB / 1.422 GB, free: 213.9 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00269/2.608, allocations: 1.456 MB / 1.424 GB, free: 213.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/2.608, allocations: 3.969 kB / 1.424 GB, free: 213.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004627/2.608, allocations: 92.12 kB / 1.424 GB, free: 213.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/2.608, allocations: 6.859 kB / 1.424 GB, free: 213.5 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.273e-05/2.608, allocations: 16.53 kB / 1.424 GB, free: 213.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005614/2.609, allocations: 1.776 MB / 1.426 GB, free: 211.7 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/2.609, allocations: 3.906 kB / 1.426 GB, free: 211.7 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001644/2.61, allocations: 1.151 MB / 1.427 GB, free: 211.4 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001944/2.612, allocations: 1.821 MB / 1.428 GB, free: 210.6 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004316/2.613, allocations: 233.6 kB / 1.429 GB, free: 210.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/2.613, allocations: 7.578 kB / 1.429 GB, free: 210.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006242/2.613, allocations: 72.83 kB / 1.429 GB, free: 210.5 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/2.614, allocations: 50.25 kB / 1.429 GB, free: 210.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.492e-05/2.614, allocations: 22.09 kB / 1.429 GB, free: 210.5 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0005437/2.614, allocations: 458.9 kB / 1.429 GB, free: 210.4 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002758/2.617, allocations: 0.5786 MB / 1.43 GB, free: 210.4 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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.001053/2.618, allocations: 487.8 kB / 1.43 GB, free: 210.3 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001919/2.62, allocations: 0.831 MB / 1.431 GB, free: 210.2 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/2.62, allocations: 3.875 kB / 1.431 GB, free: 210.2 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0005046/2.62, allocations: 307.2 kB / 1.431 GB, free: 210.2 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/2.622, allocations: 297 kB / 1.432 GB, free: 210.2 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002407/2.625, allocations: 1.07 MB / 1.433 GB, free: 209.9 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006568/2.625, allocations: 1.088 MB / 1.434 GB, free: 209.1 MB / 0.6982 GB Notification: Performance of SimCode: time 1.763e-06/2.625, allocations: 0 / 1.434 GB, free: 209.1 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)