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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.718/0.718, allocations: 140.1 MB / 156 MB, free: 5.141 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009695/0.0009696, allocations: 182.4 kB / 188.5 MB, free: 15.81 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.4 MB / 426.4 MB, free: 8.465 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007921/0.000792, allocations: 90.36 kB / 0.4945 GB, free: 8.402 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001656/0.001656, allocations: 263.8 kB / 0.5728 GB, free: 66.22 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004617/0.000462, allocations: 20 kB / 0.662 GB, free: 6.793 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.3775, allocations: 79.3 MB / 0.7395 GB, free: 46.35 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.697/1.075, allocations: 372 MB / 1.103 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/1.075, allocations: 109.2 kB / 1.103 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.8541/1.929, allocations: 300.6 MB / 1.396 GB, free: 11.69 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.034e-06/1.929, allocations: 0 / 1.396 GB, free: 11.69 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0001265/1.929, allocations: 28 kB / 1.396 GB, free: 11.66 MB / 0.6667 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.003118/1.932, allocations: 1.391 MB / 1.398 GB, free: 10.21 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/1.932, allocations: 8.031 kB / 1.398 GB, free: 10.2 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003668/1.933, allocations: 119.5 kB / 1.398 GB, free: 10.08 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/1.934, allocations: 0.7076 MB / 1.399 GB, free: 9.332 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/1.934, allocations: 61.62 kB / 1.399 GB, free: 9.273 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/1.934, allocations: 64.38 kB / 1.399 GB, free: 9.211 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/1.935, allocations: 0.6902 MB / 1.399 GB, free: 8.48 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/1.936, allocations: 3.938 kB / 1.399 GB, free: 8.477 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.666e-05/1.936, allocations: 28 kB / 1.399 GB, free: 8.449 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/1.936, allocations: 12 kB / 1.399 GB, free: 8.438 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007957/1.936, allocations: 480.9 kB / 1.4 GB, free: 7.969 MB / 0.6667 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.003407/1.94, allocations: 2.596 MB / 1.402 GB, free: 5.238 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007129/1.941, allocations: 406.6 kB / 1.403 GB, free: 4.832 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003388/1.941, allocations: 224.7 kB / 1.403 GB, free: 4.609 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002528/1.941, allocations: 345 kB / 1.403 GB, free: 4.199 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004818/1.942, allocations: 353.3 kB / 1.404 GB, free: 3.82 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=37): time 2.385e-06/1.942, allocations: 0 / 1.404 GB, free: 3.82 MB / 0.6667 GB Notification: Performance of matching and sorting (n=37): time 0.001476/1.943, allocations: 0.8057 MB / 1.404 GB, free: 3 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.614e-05/1.943, allocations: 243.8 kB / 1.405 GB, free: 2.707 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008869/1.944, allocations: 0.8359 MB / 1.406 GB, free: 1.848 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 6.481e-05/1.944, allocations: 41.7 kB / 1.406 GB, free: 1.801 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.00026/1.944, allocations: 436.4 kB / 1.406 GB, free: 1.367 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 8.759e-05/1.945, allocations: 118.3 kB / 1.406 GB, free: 1.25 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.957e-05/1.945, allocations: 12 kB / 1.406 GB, free: 1.238 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 6.007e-05/1.945, allocations: 333.9 kB / 1.406 GB, free: 0.9062 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003836/1.945, allocations: 233 kB / 1.407 GB, free: 0.6797 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004589/1.946, allocations: 421.9 kB / 1.407 GB, free: 188 kB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3544/2.3, allocations: 0.5724 MB / 1.408 GB, free: 156.2 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/2.3, allocations: 0.7812 kB / 1.408 GB, free: 156.2 MB / 0.6667 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001813/2.302, allocations: 0.808 MB / 1.408 GB, free: 156.1 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/2.302, allocations: 198.6 kB / 1.409 GB, free: 155.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/2.302, allocations: 2.969 kB / 1.409 GB, free: 155.9 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/2.302, allocations: 6.469 kB / 1.409 GB, free: 155.9 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/2.303, allocations: 181.9 kB / 1.409 GB, free: 155.9 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006872/2.304, allocations: 1.782 MB / 1.411 GB, free: 154.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009138/2.305, allocations: 131 kB / 1.411 GB, free: 154.2 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.859e-05/2.305, allocations: 33.08 kB / 1.411 GB, free: 154.2 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/2.305, allocations: 5.938 kB / 1.411 GB, free: 154.2 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001377/2.306, allocations: 0.7116 MB / 1.411 GB, free: 154.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/2.306, allocations: 3.25 kB / 1.411 GB, free: 154.1 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.328e-06/2.306, allocations: 6.125 kB / 1.411 GB, free: 154.1 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005344/2.307, allocations: 138.5 kB / 1.412 GB, free: 154.1 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/2.307, allocations: 6.031 kB / 1.412 GB, free: 154.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007913/2.308, allocations: 121.6 kB / 1.412 GB, free: 154.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.309e-05/2.308, allocations: 30.42 kB / 1.412 GB, free: 154.1 MB / 0.6667 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.0005126/2.308, allocations: 354.6 kB / 1.412 GB, free: 153.9 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/2.308, allocations: 95.8 kB / 1.412 GB, free: 153.9 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/2.31, allocations: 0.7564 MB / 1.413 GB, free: 153.8 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/2.31, allocations: 5.078 kB / 1.413 GB, free: 153.8 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/2.31, allocations: 0.9375 kB / 1.413 GB, free: 153.8 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/2.31, allocations: 3.641 kB / 1.413 GB, free: 153.8 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002466/2.312, allocations: 1.63 MB / 1.414 GB, free: 153.3 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/2.312, allocations: 1.156 kB / 1.414 GB, free: 153.3 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004152/2.313, allocations: 96.45 kB / 1.415 GB, free: 153.3 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/2.313, allocations: 3.062 kB / 1.415 GB, free: 153.3 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.824e-05/2.313, allocations: 23.36 kB / 1.415 GB, free: 153.3 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005066/2.313, allocations: 1.762 MB / 1.416 GB, free: 151.6 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/2.313, allocations: 6.031 kB / 1.416 GB, free: 151.6 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/2.315, allocations: 1.232 MB / 1.417 GB, free: 151.2 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003076/2.315, allocations: 232.6 kB / 1.418 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/2.316, allocations: 10.78 kB / 1.418 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005609/2.316, allocations: 82.41 kB / 1.418 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/2.316, allocations: 51.16 kB / 1.418 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/2.316, allocations: 22.5 kB / 1.418 GB, free: 151 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0005883/2.317, allocations: 0.5628 MB / 1.418 GB, free: 150.9 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.8e-07/2.317, allocations: 2.812 kB / 1.418 GB, free: 150.9 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00174/2.319, allocations: 496.1 kB / 1.419 GB, free: 150.9 MB / 0.6667 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.001129/2.32, allocations: 484.6 kB / 1.419 GB, free: 150.8 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002188/2.322, allocations: 1.06 MB / 1.42 GB, free: 150.7 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/2.322, allocations: 0 / 1.42 GB, free: 150.7 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005569/2.323, allocations: 373 kB / 1.421 GB, free: 150.6 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/2.325, allocations: 374.2 kB / 1.421 GB, free: 150.6 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/2.327, allocations: 1.718 MB / 1.423 GB, free: 149.8 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000391/2.327, allocations: 1.001 MB / 1.424 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0006461/2.328, allocations: 162.7 kB / 1.424 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/2.328, allocations: 67.55 kB / 1.424 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of SimCode: time 4.61e-07/2.328, allocations: 0 / 1.424 GB, free: 149.1 MB / 0.6667 GB Notification: Performance of Templates: time 0.02524/2.353, allocations: 17.43 MB / 1.441 GB, free: 148.9 MB / 0.6667 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)