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.744/0.744, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 181.7 kB / 187.3 MB, free: 11.89 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.426/1.426, allocations: 221.3 MB / 441.4 MB, free: 4.66 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.0008622/0.0008621, allocations: 87.38 kB / 0.5124 GB, free: 24.08 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001763/0.001763, allocations: 269.9 kB / 0.5939 GB, free: 7.977 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.121e-05/4.16e-05, allocations: 4 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4326/0.4327, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7745/1.207, allocations: 360.2 MB / 1.116 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/1.207, allocations: 96 kB / 1.116 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 1.049/2.257, allocations: 307.4 MB / 1.416 GB, free: 45.45 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.134e-06/2.257, allocations: 0 / 1.416 GB, free: 45.45 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001331/2.257, allocations: 27.98 kB / 1.416 GB, free: 45.42 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.002816/2.26, allocations: 1.244 MB / 1.418 GB, free: 44.12 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/2.26, allocations: 8.031 kB / 1.418 GB, free: 44.12 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002311/2.26, allocations: 106.4 kB / 1.418 GB, free: 44 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003561/2.26, allocations: 122.5 kB / 1.418 GB, free: 43.88 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/2.262, allocations: 0.6678 MB / 1.419 GB, free: 43.18 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.823e-05/2.262, allocations: 49.31 kB / 1.419 GB, free: 43.12 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/2.262, allocations: 64 kB / 1.419 GB, free: 43.06 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/2.263, allocations: 0.6626 MB / 1.419 GB, free: 42.36 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/2.263, allocations: 0 / 1.419 GB, free: 42.36 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.894e-05/2.263, allocations: 24 kB / 1.419 GB, free: 42.34 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/2.263, allocations: 12 kB / 1.419 GB, free: 42.32 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000656/2.264, allocations: 433 kB / 1.42 GB, free: 41.9 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.00351/2.267, allocations: 2.608 MB / 1.422 GB, free: 39.16 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000493/2.268, allocations: 344.2 kB / 1.423 GB, free: 38.81 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002439/2.268, allocations: 192.8 kB / 1.423 GB, free: 38.62 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002662/2.268, allocations: 340.6 kB / 1.423 GB, free: 38.21 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004164/2.269, allocations: 329.2 kB / 1.423 GB, free: 37.86 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 2.906e-06/2.269, allocations: 7.938 kB / 1.423 GB, free: 37.85 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.0009996/2.27, allocations: 0.559 MB / 1.424 GB, free: 37.28 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/2.27, allocations: 239.6 kB / 1.424 GB, free: 36.99 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008401/2.271, allocations: 0.7267 MB / 1.425 GB, free: 36.24 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.848e-05/2.271, allocations: 45.7 kB / 1.425 GB, free: 36.19 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002778/2.271, allocations: 432.4 kB / 1.425 GB, free: 35.76 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.447e-05/2.271, allocations: 118.3 kB / 1.426 GB, free: 35.64 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/2.271, allocations: 12.06 kB / 1.426 GB, free: 35.63 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.757e-05/2.271, allocations: 337.9 kB / 1.426 GB, free: 35.29 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/2.272, allocations: 201.3 kB / 1.426 GB, free: 35.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004124/2.272, allocations: 393.6 kB / 1.426 GB, free: 34.63 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003446/2.272, allocations: 258.5 kB / 1.427 GB, free: 34.37 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/2.272, allocations: 8 kB / 1.427 GB, free: 34.36 MB / 0.698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001067/2.273, allocations: 0.7446 MB / 1.427 GB, free: 33.61 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002521/2.274, allocations: 1.083 MB / 1.428 GB, free: 32.44 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/2.274, allocations: 0 / 1.428 GB, free: 32.44 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.645e-05/2.274, allocations: 8 kB / 1.428 GB, free: 32.43 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009178/2.275, allocations: 155.8 kB / 1.429 GB, free: 32.28 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007985/2.275, allocations: 1.781 MB / 1.43 GB, free: 30.43 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009469/2.276, allocations: 123.5 kB / 1.43 GB, free: 30.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.292e-05/2.276, allocations: 35.98 kB / 1.43 GB, free: 30.27 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/2.276, allocations: 4 kB / 1.43 GB, free: 30.27 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009301/2.277, allocations: 0.6541 MB / 1.431 GB, free: 29.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/2.277, allocations: 4 kB / 1.431 GB, free: 29.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.273e-06/2.277, allocations: 4 kB / 1.431 GB, free: 29.59 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004881/2.278, allocations: 140.1 kB / 1.431 GB, free: 29.46 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/2.278, allocations: 15.88 kB / 1.431 GB, free: 29.44 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008539/2.279, allocations: 111.5 kB / 1.431 GB, free: 29.33 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.209e-05/2.279, allocations: 35.92 kB / 1.431 GB, free: 29.3 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 (67): * Single equations (assignments): 63 * 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.0002277/2.279, allocations: 180.6 kB / 1.432 GB, free: 29.11 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/2.279, allocations: 94.86 kB / 1.432 GB, free: 29.02 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001309/2.281, allocations: 0.7042 MB / 1.432 GB, free: 28.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/2.281, allocations: 4 kB / 1.432 GB, free: 28.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/2.281, allocations: 3.938 kB / 1.432 GB, free: 28.29 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/2.281, allocations: 7.984 kB / 1.432 GB, free: 28.29 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002149/2.283, allocations: 1.564 MB / 1.434 GB, free: 26.65 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/2.283, allocations: 0 / 1.434 GB, free: 26.65 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004246/2.283, allocations: 95.81 kB / 1.434 GB, free: 26.55 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.149e-05/2.283, allocations: 7.984 kB / 1.434 GB, free: 26.55 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.804e-05/2.283, allocations: 16 kB / 1.434 GB, free: 26.53 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005197/2.284, allocations: 1.766 MB / 1.436 GB, free: 24.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/2.284, allocations: 96 / 1.436 GB, free: 24.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/2.285, allocations: 1.204 MB / 1.437 GB, free: 23.44 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003728/2.285, allocations: 231.8 kB / 1.437 GB, free: 23.19 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/2.286, allocations: 24 kB / 1.437 GB, free: 23.17 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006561/2.286, allocations: 71.84 kB / 1.437 GB, free: 23.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/2.286, allocations: 47.92 kB / 1.437 GB, free: 23.05 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.365e-05/2.287, allocations: 23.98 kB / 1.437 GB, free: 23.03 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006357/2.287, allocations: 0.5596 MB / 1.438 GB, free: 22.45 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.31e-07/2.287, allocations: 0 / 1.438 GB, free: 22.45 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001631/2.289, allocations: 0.5031 MB / 1.438 GB, free: 21.95 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.002354/2.291, allocations: 2.312 MB / 1.441 GB, free: 19.6 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001773/2.293, allocations: 0.9736 MB / 1.442 GB, free: 18.59 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/2.293, allocations: 0 / 1.442 GB, free: 18.59 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004712/2.293, allocations: 331.2 kB / 1.442 GB, free: 18.26 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/2.295, allocations: 368.4 kB / 1.442 GB, free: 17.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00306/2.299, allocations: 1.318 MB / 1.444 GB, free: 16.53 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/2.299, allocations: 1.019 MB / 1.445 GB, free: 15.48 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009274/2.3, allocations: 221 kB / 1.445 GB, free: 15.26 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003416/2.3, allocations: 323.3 kB / 1.445 GB, free: 14.95 MB / 0.698 GB Notification: Performance of SimCode: time 1.112e-06/2.3, allocations: 0 / 1.445 GB, free: 14.95 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4544/2.755, allocations: 27.36 MB / 1.472 GB, free: 172.9 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/2.755, allocations: 246.1 kB / 1.472 GB, free: 172.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.875/5.63, allocations: 2.297 kB / 1.472 GB, free: 172.6 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)