Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.658/2.658, allocations: 287.3 MB / 302.3 MB, free: 8.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001568/0.001567, allocations: 176.5 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.153/2.153, allocations: 205.4 MB / 0.6295 GB, free: 10.66 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001142, allocations: 104 kB / 0.7428 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000647/0.0006472, allocations: 11.8 kB / 0.8657 GB, free: 140 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2264, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.3/1.526, allocations: 402.6 MB / 1.371 GB, free: 11.41 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003652/1.527, allocations: 101.8 kB / 1.372 GB, free: 11.35 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.668/3.195, allocations: 302.2 MB / 1.667 GB, free: 119.5 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.384e-06/3.195, allocations: 0 / 1.667 GB, free: 119.5 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0001098/3.195, allocations: 24 kB / 1.667 GB, free: 119.4 MB / 0.9323 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.004207/3.199, allocations: 1.404 MB / 1.668 GB, free: 118 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/3.199, allocations: 15.97 kB / 1.668 GB, free: 118 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003297/3.2, allocations: 106.5 kB / 1.668 GB, free: 117.8 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003442/3.2, allocations: 118.6 kB / 1.668 GB, free: 117.7 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002189/3.202, allocations: 0.6717 MB / 1.669 GB, free: 117 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.693e-05/3.202, allocations: 49.31 kB / 1.669 GB, free: 117 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/3.203, allocations: 64 kB / 1.669 GB, free: 116.9 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/3.204, allocations: 0.6936 MB / 1.67 GB, free: 116.2 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/3.204, allocations: 0 / 1.67 GB, free: 116.2 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.562e-05/3.204, allocations: 27.95 kB / 1.67 GB, free: 116.1 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/3.204, allocations: 15.98 kB / 1.67 GB, free: 116.1 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/3.206, allocations: 472.9 kB / 1.67 GB, free: 115.7 MB / 0.9323 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.005955/3.212, allocations: 2.604 MB / 1.673 GB, free: 112.9 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/3.213, allocations: 403.4 kB / 1.673 GB, free: 112.5 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003264/3.214, allocations: 344.4 kB / 1.673 GB, free: 112.1 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009142/3.214, allocations: 365.1 kB / 1.674 GB, free: 111.7 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 3.497e-06/3.215, allocations: 0 / 1.674 GB, free: 111.7 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.002665/3.217, allocations: 0.8813 MB / 1.675 GB, free: 110.8 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/3.217, allocations: 239.5 kB / 1.675 GB, free: 110.5 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/3.219, allocations: 0.7257 MB / 1.676 GB, free: 109.8 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.000191/3.219, allocations: 37.7 kB / 1.676 GB, free: 109.7 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004152/3.219, allocations: 440.3 kB / 1.676 GB, free: 109.3 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/3.22, allocations: 122.8 kB / 1.676 GB, free: 109.2 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-05/3.22, allocations: 12 kB / 1.676 GB, free: 109.2 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 7.513e-05/3.22, allocations: 329.9 kB / 1.676 GB, free: 108.8 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000727/3.22, allocations: 233.1 kB / 1.677 GB, free: 108.6 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008671/3.221, allocations: 424.7 kB / 1.677 GB, free: 108.1 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007964/3.222, allocations: 289.8 kB / 1.677 GB, free: 107.8 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/3.222, allocations: 0 / 1.677 GB, free: 107.8 MB / 0.9323 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002422/3.225, allocations: 0.7957 MB / 1.678 GB, free: 107 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002642/3.225, allocations: 1.086 MB / 1.679 GB, free: 105.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/3.225, allocations: 3.984 kB / 1.679 GB, free: 105.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.886e-05/3.225, allocations: 12 kB / 1.679 GB, free: 105.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/3.227, allocations: 155.7 kB / 1.679 GB, free: 105.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/3.228, allocations: 1.789 MB / 1.681 GB, free: 103.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/3.229, allocations: 131.2 kB / 1.681 GB, free: 103.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/3.23, allocations: 35.98 kB / 1.681 GB, free: 103.6 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/3.23, allocations: 4 kB / 1.681 GB, free: 103.6 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002116/3.232, allocations: 0.7011 MB / 1.682 GB, free: 102.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/3.232, allocations: 4.344 kB / 1.682 GB, free: 102.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/3.232, allocations: 8 kB / 1.682 GB, free: 102.9 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/3.233, allocations: 135.8 kB / 1.682 GB, free: 102.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/3.233, allocations: 7.984 kB / 1.682 GB, free: 102.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/3.235, allocations: 115.4 kB / 1.682 GB, free: 102.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001935/3.235, allocations: 32 kB / 1.682 GB, free: 102.6 MB / 0.9323 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 () * Number of clocked 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.0008152/3.236, allocations: 354.6 kB / 1.683 GB, free: 102.3 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003274/3.236, allocations: 94.83 kB / 1.683 GB, free: 102.2 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002604/3.239, allocations: 0.7517 MB / 1.683 GB, free: 101.4 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.092e-05/3.239, allocations: 8 kB / 1.683 GB, free: 101.4 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/3.239, allocations: 0 / 1.683 GB, free: 101.4 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/3.239, allocations: 3.984 kB / 1.683 GB, free: 101.4 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004081/3.243, allocations: 1.618 MB / 1.685 GB, free: 99.71 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.68e-05/3.243, allocations: 4 kB / 1.685 GB, free: 99.71 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008344/3.244, allocations: 107.9 kB / 1.685 GB, free: 99.61 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/3.244, allocations: 0 / 1.685 GB, free: 99.61 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.522e-05/3.244, allocations: 19.98 kB / 1.685 GB, free: 99.59 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008107/3.245, allocations: 1.758 MB / 1.687 GB, free: 97.76 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/3.245, allocations: 7.969 kB / 1.687 GB, free: 97.75 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003133/3.248, allocations: 1.27 MB / 1.688 GB, free: 96.43 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006453/3.249, allocations: 235.8 kB / 1.688 GB, free: 96.18 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/3.249, allocations: 19.98 kB / 1.688 GB, free: 96.16 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/3.25, allocations: 75.91 kB / 1.688 GB, free: 96.08 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/3.25, allocations: 51.84 kB / 1.688 GB, free: 96.03 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.38e-05/3.25, allocations: 23.98 kB / 1.688 GB, free: 96.01 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.001069/3.251, allocations: 0.5588 MB / 1.689 GB, free: 95.44 MB / 0.9323 GB Notification: Performance of sort global known variables: time 5.91e-07/3.251, allocations: 0 / 1.689 GB, free: 95.44 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002308/3.254, allocations: 0.4953 MB / 1.69 GB, free: 94.94 MB / 0.9323 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) * Number of clocked states: 0 () * 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.003991/3.258, allocations: 2.383 MB / 1.692 GB, free: 92.51 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003357/3.261, allocations: 1.027 MB / 1.693 GB, free: 91.46 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/3.261, allocations: 0.875 kB / 1.693 GB, free: 91.46 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.00105/3.262, allocations: 367 kB / 1.693 GB, free: 91.09 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003604/3.266, allocations: 370.9 kB / 1.694 GB, free: 90.73 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009656/3.276, allocations: 3.894 MB / 1.697 GB, free: 86.71 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/3.277, allocations: 1.017 MB / 1.698 GB, free: 85.67 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.001973/3.279, allocations: 149.9 kB / 1.698 GB, free: 85.52 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008774/3.28, allocations: 343.3 kB / 1.699 GB, free: 85.19 MB / 0.9323 GB Notification: Performance of SimCode: time 1.543e-06/3.28, allocations: 0 / 1.699 GB, free: 85.19 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1029/3.383, allocations: 25.38 MB / 1.724 GB, free: 60.18 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002741/3.383, allocations: 265.2 kB / 1.724 GB, free: 59.83 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.849/7.232, allocations: 3.938 kB / 1.724 GB, free: 59.82 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)