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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9542/0.9542, allocations: 141.8 MB / 149.3 MB, free: 9.215 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001013, allocations: 192.8 kB / 182.2 MB, free: 9.434 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 221.5 MB / 436.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001065, allocations: 98.33 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001879/0.001879, allocations: 278.2 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.768e-05/2.77e-05, allocations: 4 kB / 0.6766 GB, free: 12.72 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.465/0.465, allocations: 82.78 MB / 0.7575 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8464/1.311, allocations: 359.5 MB / 1.109 GB, free: 5.402 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004182/1.312, allocations: 94.94 kB / 1.109 GB, free: 5.352 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.9529/2.265, allocations: 305.1 MB / 1.407 GB, free: 42.18 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.583e-06/2.265, allocations: 0 / 1.407 GB, free: 42.18 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.719e-05/2.265, allocations: 27.94 kB / 1.407 GB, free: 42.16 MB / 0.698 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.002151/2.267, allocations: 1.256 MB / 1.408 GB, free: 40.84 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/2.267, allocations: 8.031 kB / 1.408 GB, free: 40.84 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/2.267, allocations: 118.6 kB / 1.408 GB, free: 40.72 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/2.269, allocations: 0.6717 MB / 1.409 GB, free: 40.01 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/2.269, allocations: 20 kB / 1.409 GB, free: 39.99 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.816e-05/2.269, allocations: 40 kB / 1.409 GB, free: 39.95 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005908/2.269, allocations: 398.5 kB / 1.409 GB, free: 39.56 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007471/2.27, allocations: 0.5779 MB / 1.41 GB, free: 38.94 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/2.27, allocations: 4 kB / 1.41 GB, free: 38.94 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.713e-05/2.27, allocations: 0 / 1.41 GB, free: 38.94 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/2.27, allocations: 16 kB / 1.41 GB, free: 38.92 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002892/2.273, allocations: 2.475 MB / 1.412 GB, free: 36.32 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004391/2.273, allocations: 339.2 kB / 1.412 GB, free: 35.98 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/2.274, allocations: 189.4 kB / 1.413 GB, free: 35.79 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002499/2.274, allocations: 348.3 kB / 1.413 GB, free: 35.38 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003621/2.274, allocations: 317.4 kB / 1.413 GB, free: 35.04 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 1.873e-06/2.274, allocations: 4 kB / 1.413 GB, free: 35.03 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.001375/2.276, allocations: 0.6042 MB / 1.414 GB, free: 34.42 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/2.276, allocations: 243.5 kB / 1.414 GB, free: 34.12 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005454/2.276, allocations: 0.5946 MB / 1.415 GB, free: 33.52 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.665e-05/2.276, allocations: 29.7 kB / 1.415 GB, free: 33.49 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/2.277, allocations: 439.9 kB / 1.415 GB, free: 33.05 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.475e-05/2.277, allocations: 110.9 kB / 1.415 GB, free: 32.95 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.012e-05/2.277, allocations: 8.062 kB / 1.415 GB, free: 32.94 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.347e-05/2.277, allocations: 330 kB / 1.415 GB, free: 32.61 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002428/2.277, allocations: 193 kB / 1.416 GB, free: 32.42 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/2.277, allocations: 375.8 kB / 1.416 GB, free: 31.97 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000775/2.278, allocations: 309.8 kB / 1.416 GB, free: 31.67 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/2.278, allocations: 4 kB / 1.416 GB, free: 31.67 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001337/2.28, allocations: 0.7586 MB / 1.417 GB, free: 30.91 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002408/2.28, allocations: 1.091 MB / 1.418 GB, free: 29.73 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/2.28, allocations: 0 / 1.418 GB, free: 29.73 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/2.28, allocations: 11.98 kB / 1.418 GB, free: 29.71 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009436/2.281, allocations: 155.7 kB / 1.418 GB, free: 29.56 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007785/2.282, allocations: 1.797 MB / 1.42 GB, free: 27.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007967/2.282, allocations: 107.5 kB / 1.42 GB, free: 27.59 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-05/2.282, allocations: 35.98 kB / 1.42 GB, free: 27.55 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/2.282, allocations: 9.406 kB / 1.42 GB, free: 27.55 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001225/2.284, allocations: 0.6369 MB / 1.421 GB, free: 26.91 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/2.284, allocations: 3.938 kB / 1.421 GB, free: 26.91 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.073e-06/2.284, allocations: 8 kB / 1.421 GB, free: 26.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004881/2.284, allocations: 132.2 kB / 1.421 GB, free: 26.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/2.284, allocations: 11.94 kB / 1.421 GB, free: 26.76 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006926/2.285, allocations: 91.61 kB / 1.421 GB, free: 26.67 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.025e-05/2.285, allocations: 31.98 kB / 1.421 GB, free: 26.64 MB / 0.698 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.0001925/2.285, allocations: 162.5 kB / 1.421 GB, free: 26.46 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001202/2.286, allocations: 0.6168 MB / 1.422 GB, free: 25.84 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.167e-05/2.286, allocations: 86.92 kB / 1.422 GB, free: 25.76 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/2.288, allocations: 0.7136 MB / 1.423 GB, free: 25.03 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.956e-06/2.288, allocations: 4 kB / 1.423 GB, free: 25.03 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/2.288, allocations: 3.984 kB / 1.423 GB, free: 25.02 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/2.288, allocations: 4 kB / 1.423 GB, free: 25.02 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002282/2.29, allocations: 1.526 MB / 1.424 GB, free: 23.44 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/2.29, allocations: 0 / 1.424 GB, free: 23.44 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004248/2.291, allocations: 99.8 kB / 1.424 GB, free: 23.34 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/2.291, allocations: 4 kB / 1.424 GB, free: 23.34 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/2.291, allocations: 15.98 kB / 1.424 GB, free: 23.32 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005782/2.291, allocations: 1.762 MB / 1.426 GB, free: 21.49 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/2.291, allocations: 0 / 1.426 GB, free: 21.49 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/2.293, allocations: 1.225 MB / 1.427 GB, free: 20.21 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/2.293, allocations: 219.9 kB / 1.427 GB, free: 19.98 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/2.294, allocations: 8 kB / 1.427 GB, free: 19.97 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006075/2.294, allocations: 79.78 kB / 1.427 GB, free: 19.89 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/2.294, allocations: 39.94 kB / 1.427 GB, free: 19.86 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-05/2.294, allocations: 27.98 kB / 1.427 GB, free: 19.83 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0005099/2.295, allocations: 455.1 kB / 1.428 GB, free: 19.39 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.51e-07/2.295, allocations: 8 kB / 1.428 GB, free: 19.38 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001802/2.297, allocations: 498.8 kB / 1.428 GB, free: 18.89 MB / 0.698 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.002482/2.299, allocations: 2.312 MB / 1.431 GB, free: 16.53 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001579/2.301, allocations: 0.9283 MB / 1.432 GB, free: 15.58 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/2.301, allocations: 0 / 1.432 GB, free: 15.58 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004104/2.301, allocations: 323.7 kB / 1.432 GB, free: 15.25 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/2.303, allocations: 298.6 kB / 1.432 GB, free: 14.96 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/2.306, allocations: 1.259 MB / 1.433 GB, free: 13.65 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/2.306, allocations: 1.022 MB / 1.434 GB, free: 12.59 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008883/2.307, allocations: 199.6 kB / 1.435 GB, free: 12.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003909/2.307, allocations: 319.3 kB / 1.435 GB, free: 12.09 MB / 0.698 GB Notification: Performance of SimCode: time 7.82e-07/2.307, allocations: 0 / 1.435 GB, free: 12.09 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4409/2.748, allocations: 22.7 MB / 1.457 GB, free: 175.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/2.749, allocations: 202.1 kB / 1.457 GB, free: 175.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.741/5.489, allocations: 1.547 kB / 1.457 GB, free: 175.5 MB / 0.698 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)