Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.67/1.67, allocations: 289.9 MB / 297.4 MB, free: 6.332 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.001595/0.001595, allocations: 176.9 kB / 366.7 MB, free: 1.625 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.863/1.863, allocations: 205.2 MB / 0.626 GB, free: 7.16 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008577/0.0008578, allocations: 80.5 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.039e-05/3.049e-05, allocations: 4 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8522/0.8522, allocations: 116.3 MB / 0.9733 GB, free: 76.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.228/2.08, allocations: 403 MB / 1.367 GB, free: 153.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/2.081, allocations: 97.89 kB / 1.367 GB, free: 153.1 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.339/3.419, allocations: 299 MB / 1.659 GB, free: 245.3 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.913e-06/3.419, allocations: 0 / 1.659 GB, free: 245.3 MB / 0.948 GB Notification: Performance of Transformations before backend: time 9.399e-05/3.42, allocations: 25.59 kB / 1.659 GB, free: 245.3 MB / 0.948 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.002958/3.423, allocations: 1.242 MB / 1.66 GB, free: 244.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 6.067e-05/3.423, allocations: 9.438 kB / 1.66 GB, free: 244.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003658/3.423, allocations: 117.8 kB / 1.66 GB, free: 244.7 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001461/3.424, allocations: 0.6673 MB / 1.661 GB, free: 244.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.829e-05/3.425, allocations: 21.59 kB / 1.661 GB, free: 244.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/3.425, allocations: 39.03 kB / 1.661 GB, free: 244.4 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008156/3.425, allocations: 398.2 kB / 1.661 GB, free: 244.4 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/3.426, allocations: 0.5712 MB / 1.662 GB, free: 244.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/3.427, allocations: 1.375 kB / 1.662 GB, free: 244.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.244e-05/3.427, allocations: 3.906 kB / 1.662 GB, free: 244.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/3.427, allocations: 17.41 kB / 1.662 GB, free: 244.3 MB / 0.948 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.004096/3.431, allocations: 2.469 MB / 1.664 GB, free: 243 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006069/3.431, allocations: 346.2 kB / 1.665 GB, free: 243 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/3.432, allocations: 185.1 kB / 1.665 GB, free: 243 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003057/3.432, allocations: 343.3 kB / 1.665 GB, free: 242.6 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004844/3.432, allocations: 322.4 kB / 1.666 GB, free: 242.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=37): time 2.875e-06/3.432, allocations: 0 / 1.666 GB, free: 242.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=37): time 0.001865/3.434, allocations: 0.6067 MB / 1.666 GB, free: 242.4 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/3.434, allocations: 245.9 kB / 1.666 GB, free: 242.1 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000928/3.435, allocations: 0.5837 MB / 1.667 GB, free: 242 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.431e-05/3.436, allocations: 33.89 kB / 1.667 GB, free: 242 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003709/3.436, allocations: 444.7 kB / 1.667 GB, free: 241.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000106/3.436, allocations: 118.5 kB / 1.667 GB, free: 241.8 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.911e-05/3.436, allocations: 0 / 1.667 GB, free: 241.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.219e-05/3.436, allocations: 328.4 kB / 1.668 GB, free: 241.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003045/3.436, allocations: 186.5 kB / 1.668 GB, free: 241.5 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004562/3.437, allocations: 387.5 kB / 1.668 GB, free: 241.2 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009934/3.438, allocations: 306.9 kB / 1.669 GB, free: 241.2 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/3.438, allocations: 2.406 kB / 1.669 GB, free: 241.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001869/3.44, allocations: 0.7631 MB / 1.669 GB, free: 241.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003197/3.44, allocations: 1.077 MB / 1.67 GB, free: 240 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/3.44, allocations: 4.312 kB / 1.67 GB, free: 240 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.048e-05/3.44, allocations: 8.891 kB / 1.67 GB, free: 240 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/3.441, allocations: 160.9 kB / 1.671 GB, free: 240 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008143/3.442, allocations: 1.794 MB / 1.672 GB, free: 238.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/3.443, allocations: 105.6 kB / 1.672 GB, free: 238.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/3.443, allocations: 32.47 kB / 1.672 GB, free: 238.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/3.443, allocations: 6.031 kB / 1.672 GB, free: 238.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00174/3.445, allocations: 0.64 MB / 1.673 GB, free: 238.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/3.445, allocations: 3.75 kB / 1.673 GB, free: 238.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/3.445, allocations: 5.344 kB / 1.673 GB, free: 238.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005844/3.446, allocations: 141.7 kB / 1.673 GB, free: 238.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/3.446, allocations: 6.312 kB / 1.673 GB, free: 238.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009898/3.447, allocations: 96.12 kB / 1.673 GB, free: 238.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.772e-05/3.447, allocations: 31.53 kB / 1.673 GB, free: 238.2 MB / 0.948 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.0003009/3.447, allocations: 161.1 kB / 1.674 GB, free: 238.1 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00182/3.449, allocations: 0.6163 MB / 1.674 GB, free: 238 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/3.449, allocations: 91.2 kB / 1.674 GB, free: 237.9 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/3.451, allocations: 0.7095 MB / 1.675 GB, free: 237.9 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/3.451, allocations: 4.438 kB / 1.675 GB, free: 237.9 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/3.451, allocations: 2.625 kB / 1.675 GB, free: 237.9 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/3.451, allocations: 1.062 kB / 1.675 GB, free: 237.9 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002989/3.454, allocations: 1.518 MB / 1.676 GB, free: 237.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.365e-06/3.454, allocations: 1.188 kB / 1.676 GB, free: 237.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00049/3.455, allocations: 100.6 kB / 1.676 GB, free: 237.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.275e-05/3.455, allocations: 3.156 kB / 1.676 GB, free: 237.4 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.617e-05/3.455, allocations: 18.08 kB / 1.677 GB, free: 237.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006629/3.455, allocations: 1.77 MB / 1.678 GB, free: 235.7 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/3.455, allocations: 1 kB / 1.678 GB, free: 235.7 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/3.457, allocations: 1.213 MB / 1.679 GB, free: 235.3 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004297/3.458, allocations: 225.1 kB / 1.68 GB, free: 235.1 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/3.458, allocations: 7.188 kB / 1.68 GB, free: 235.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006096/3.459, allocations: 66.89 kB / 1.68 GB, free: 235.1 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/3.459, allocations: 51.08 kB / 1.68 GB, free: 235.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.908e-05/3.459, allocations: 26.72 kB / 1.68 GB, free: 235.1 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0007577/3.46, allocations: 449 kB / 1.68 GB, free: 235 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.613e-06/3.46, allocations: 0 / 1.68 GB, free: 235 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002335/3.462, allocations: 0.4988 MB / 1.681 GB, free: 234.9 MB / 0.948 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.0036/3.466, allocations: 2.307 MB / 1.683 GB, free: 233.6 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002222/3.468, allocations: 0.9223 MB / 1.684 GB, free: 233.5 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/3.468, allocations: 0.75 kB / 1.684 GB, free: 233.5 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005886/3.468, allocations: 329.7 kB / 1.684 GB, free: 233.4 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/3.471, allocations: 305.8 kB / 1.684 GB, free: 233.4 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003915/3.474, allocations: 1.244 MB / 1.686 GB, free: 233 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005817/3.475, allocations: 1.023 MB / 1.687 GB, free: 232.3 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001037/3.476, allocations: 188.4 kB / 1.687 GB, free: 232.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003759/3.477, allocations: 325.9 kB / 1.687 GB, free: 232.3 MB / 0.948 GB Notification: Performance of SimCode: time 1.001e-06/3.477, allocations: 0 / 1.687 GB, free: 232.3 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05761/3.534, allocations: 22.81 MB / 1.709 GB, free: 231.8 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001674/3.534, allocations: 177.9 kB / 1.71 GB, free: 231.6 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.214/6.748, allocations: 3.844 kB / 1.71 GB, free: 231.6 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)