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/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008849/0.0008849, allocations: 91.53 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 205.4 MB / 222.1 MB, free: 5.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.709/1.709, allocations: 292.7 MB / 0.5499 GB, free: 14.56 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004848/0.0004848, allocations: 20.42 kB / 0.6737 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2232, allocations: 116.3 MB / 0.7873 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01915/0.2424, allocations: 21.56 MB / 0.8083 GB, free: 6.309 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0137/0.2561, allocations: 9.117 MB / 0.8172 GB, free: 13.17 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001177/0.2574, allocations: 31.69 kB / 0.8173 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0008753/0.2582, allocations: 294.2 kB / 0.8175 GB, free: 12.85 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.002204/0.2605, allocations: 0.8734 MB / 0.8184 GB, free: 11.98 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002221/0.2627, allocations: 0.9024 MB / 0.8193 GB, free: 11.09 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.002237/0.2649, allocations: 2.14 MB / 0.8214 GB, free: 8.934 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007724/0.2657, allocations: 0.5725 MB / 0.8219 GB, free: 8.348 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009734/0.2667, allocations: 0.6846 MB / 0.8226 GB, free: 7.66 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008087/0.2675, allocations: 0.6302 MB / 0.8232 GB, free: 7.027 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 8.11e-05/0.2676, allocations: 28 kB / 0.8232 GB, free: 7 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001452/0.2691, allocations: 0.8695 MB / 0.8241 GB, free: 6.129 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.2692, allocations: 167.2 kB / 0.8243 GB, free: 5.965 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0002066/0.2695, allocations: 197.1 kB / 0.8244 GB, free: 5.766 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.2705, allocations: 1.017 MB / 0.8254 GB, free: 4.746 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2705, allocations: 0 / 0.8254 GB, free: 4.746 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2705, allocations: 0 / 0.8254 GB, free: 4.746 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 9.488e-06/0.2705, allocations: 0 / 0.8254 GB, free: 4.746 MB / 0.6387 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.001731/0.2723, allocations: 1.239 MB / 0.8266 GB, free: 3.449 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.2723, allocations: 12.03 kB / 0.8267 GB, free: 3.438 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.2725, allocations: 110.7 kB / 0.8268 GB, free: 3.328 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009002/0.2734, allocations: 0.6445 MB / 0.8274 GB, free: 2.645 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.619e-05/0.2734, allocations: 49.31 kB / 0.8274 GB, free: 2.594 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.949e-05/0.2735, allocations: 60 kB / 0.8275 GB, free: 2.535 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009638/0.2745, allocations: 0.6663 MB / 0.8281 GB, free: 1.828 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.2745, allocations: 3.938 kB / 0.8281 GB, free: 1.824 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.782e-05/0.2746, allocations: 27.94 kB / 0.8282 GB, free: 1.797 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.2746, allocations: 16 kB / 0.8282 GB, free: 1.781 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007204/0.2753, allocations: 452.9 kB / 0.8286 GB, free: 1.336 MB / 0.6387 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.003116/0.2784, allocations: 2.542 MB / 0.8311 GB, free: 14.66 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006489/0.2791, allocations: 365.8 kB / 0.8315 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002962/0.2794, allocations: 192.7 kB / 0.8316 GB, free: 14.11 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003464/0.2798, allocations: 344.3 kB / 0.832 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005381/0.2803, allocations: 325.2 kB / 0.8323 GB, free: 13.35 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=37): time 1.483e-06/0.2803, allocations: 0 / 0.8323 GB, free: 13.35 MB / 0.6544 GB Notification: Performance of matching and sorting (n=37): time 0.001265/0.2816, allocations: 0.6953 MB / 0.833 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.2817, allocations: 251.2 kB / 0.8332 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009109/0.2826, allocations: 0.8204 MB / 0.834 GB, free: 11.5 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.2827, allocations: 45.94 kB / 0.834 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003576/0.2831, allocations: 436.3 kB / 0.8345 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.2832, allocations: 122.3 kB / 0.8346 GB, free: 10.89 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.989e-05/0.2832, allocations: 12 kB / 0.8346 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.2834, allocations: 326 kB / 0.8349 GB, free: 10.55 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003703/0.2837, allocations: 201.1 kB / 0.8351 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004831/0.2842, allocations: 372 kB / 0.8354 GB, free: 9.938 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004233/0.2847, allocations: 267.7 kB / 0.8357 GB, free: 9.672 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.2847, allocations: 0 / 0.8357 GB, free: 9.672 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001265/0.2859, allocations: 0.7252 MB / 0.8364 GB, free: 8.934 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001525/0.2861, allocations: 198.5 kB / 0.8366 GB, free: 8.691 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.2861, allocations: 11.94 kB / 0.8366 GB, free: 8.68 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.2862, allocations: 4 kB / 0.8366 GB, free: 8.676 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009639/0.2871, allocations: 183.7 kB / 0.8368 GB, free: 8.496 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009677/0.2881, allocations: 1.774 MB / 0.8385 GB, free: 6.652 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006566/0.2888, allocations: 115.5 kB / 0.8386 GB, free: 6.539 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.359e-05/0.2889, allocations: 31.94 kB / 0.8387 GB, free: 6.508 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/0.2889, allocations: 4 kB / 0.8387 GB, free: 6.504 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001069/0.29, allocations: 0.6389 MB / 0.8393 GB, free: 5.859 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.29, allocations: 12.05 kB / 0.8393 GB, free: 5.848 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.893e-06/0.29, allocations: 4 kB / 0.8393 GB, free: 5.844 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.2905, allocations: 131.8 kB / 0.8394 GB, free: 5.715 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.2905, allocations: 4 kB / 0.8394 GB, free: 5.711 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005518/0.2911, allocations: 99.38 kB / 0.8395 GB, free: 5.613 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.2911, allocations: 24 kB / 0.8395 GB, free: 5.59 MB / 0.6544 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.000437/0.2916, allocations: 343.3 kB / 0.8399 GB, free: 5.238 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.2917, allocations: 102.8 kB / 0.84 GB, free: 5.137 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001163/0.2928, allocations: 0.6672 MB / 0.8406 GB, free: 4.453 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.2929, allocations: 4 kB / 0.8406 GB, free: 4.449 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2929, allocations: 8 kB / 0.8406 GB, free: 4.441 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.2929, allocations: 0 / 0.8406 GB, free: 4.441 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.2948, allocations: 1.531 MB / 0.8421 GB, free: 2.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.2948, allocations: 8.125 kB / 0.8421 GB, free: 2.832 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003853/0.2952, allocations: 95.91 kB / 0.8422 GB, free: 2.738 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.543e-06/0.2953, allocations: 4 kB / 0.8422 GB, free: 2.734 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.2953, allocations: 11.98 kB / 0.8422 GB, free: 2.723 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008995/0.2962, allocations: 1.77 MB / 0.844 GB, free: 0.8828 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2962, allocations: 3.938 kB / 0.844 GB, free: 0.8789 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/0.2977, allocations: 1.12 MB / 0.8451 GB, free: 15.73 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003076/0.298, allocations: 227.8 kB / 0.8453 GB, free: 15.49 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.2981, allocations: 8 kB / 0.8453 GB, free: 15.48 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004734/0.2986, allocations: 56 kB / 0.8453 GB, free: 15.43 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.983e-05/0.2987, allocations: 43.94 kB / 0.8454 GB, free: 15.38 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.2988, allocations: 20.08 kB / 0.8454 GB, free: 15.36 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0006424/0.2994, allocations: 0.5549 MB / 0.846 GB, free: 14.8 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2994, allocations: 0 / 0.846 GB, free: 14.8 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001217/0.3006, allocations: 459.1 kB / 0.8464 GB, free: 14.35 MB / 0.67 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.0007049/0.3013, allocations: 344 kB / 0.8467 GB, free: 14.01 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.001987/0.3033, allocations: 1.019 MB / 0.8477 GB, free: 12.97 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3034, allocations: 0.875 kB / 0.8477 GB, free: 12.97 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0005978/0.304, allocations: 360.1 kB / 0.8481 GB, free: 12.61 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.3058, allocations: 377.4 kB / 0.8484 GB, free: 12.24 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.3084, allocations: 1.711 MB / 0.8501 GB, free: 10.49 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/0.309, allocations: 1.001 MB / 0.8511 GB, free: 9.461 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0005625/0.3096, allocations: 158.1 kB / 0.8512 GB, free: 9.305 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.3097, allocations: 63.42 kB / 0.8513 GB, free: 9.242 MB / 0.67 GB Notification: Performance of SimCode: time 4.71e-07/0.3097, allocations: 0 / 0.8513 GB, free: 9.242 MB / 0.67 GB Notification: Performance of Templates: time 0.02498/0.3347, allocations: 15.56 MB / 0.8665 GB, free: 9.887 MB / 0.6856 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile Environment - environmentSimulation: (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 & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) Environment - environmentSimulation: