Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.474/2.474, allocations: 287.9 MB / 302.9 MB, free: 8.332 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001398/0.001397, allocations: 176.5 kB / 371.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.095/2.095, allocations: 205.4 MB / 0.6301 GB, free: 10.31 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001024/0.001023, allocations: 89.27 kB / 0.7434 GB, free: 6.32 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004679/0.0004681, allocations: 12.38 kB / 0.8662 GB, free: 141.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.1673, allocations: 115.3 MB / 0.9788 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02041/0.1877, allocations: 19.83 MB / 0.9981 GB, free: 8.301 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01427/0.2021, allocations: 8.616 MB / 1.007 GB, free: 15.67 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.2035, allocations: 31.69 kB / 1.007 GB, free: 15.64 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.001989/0.2055, allocations: 0.5212 MB / 1.007 GB, free: 15.12 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.004257/0.2098, allocations: 1.096 MB / 1.008 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.008981/0.2188, allocations: 2.474 MB / 1.011 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.002715/0.2216, allocations: 1.206 MB / 1.012 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.2228, allocations: 0.5845 MB / 1.012 GB, free: 9.77 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00156/0.2244, allocations: 0.6501 MB / 1.013 GB, free: 9.117 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009582/0.2254, allocations: 0.5018 MB / 1.013 GB, free: 8.613 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.2255, allocations: 32 kB / 1.013 GB, free: 8.582 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002285/0.2278, allocations: 0.901 MB / 1.014 GB, free: 7.68 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.000284/0.2281, allocations: 163.3 kB / 1.015 GB, free: 7.52 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.000374/0.2285, allocations: 197.1 kB / 1.015 GB, free: 7.32 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.001949/0.2305, allocations: 1.021 MB / 1.016 GB, free: 6.297 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2305, allocations: 0 / 1.016 GB, free: 6.297 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.033e-06/0.2305, allocations: 4 kB / 1.016 GB, free: 6.293 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.439e-05/0.2305, allocations: 0 / 1.016 GB, free: 6.293 MB / 0.6355 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.002582/0.2331, allocations: 1.239 MB / 1.017 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.2332, allocations: 16.02 kB / 1.017 GB, free: 4.98 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/0.2335, allocations: 110.7 kB / 1.017 GB, free: 4.871 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.2349, allocations: 0.6445 MB / 1.018 GB, free: 4.184 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.092e-05/0.235, allocations: 53.25 kB / 1.018 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.2351, allocations: 60 kB / 1.018 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.2367, allocations: 0.6546 MB / 1.018 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.2367, allocations: 0 / 1.018 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.325e-05/0.2368, allocations: 24 kB / 1.018 GB, free: 3.355 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.2368, allocations: 12 kB / 1.018 GB, free: 3.344 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.238, allocations: 460.9 kB / 1.019 GB, free: 2.895 MB / 0.6355 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.004969/0.243, allocations: 2.542 MB / 1.021 GB, free: 220 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.2441, allocations: 373.2 kB / 1.022 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003817/0.2445, allocations: 348.4 kB / 1.022 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007854/0.2453, allocations: 329.1 kB / 1.022 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 3.631e-06/0.2453, allocations: 0 / 1.022 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001982/0.2473, allocations: 0.7784 MB / 1.023 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001719/0.2475, allocations: 243.6 kB / 1.023 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00146/0.249, allocations: 0.8282 MB / 1.024 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.2491, allocations: 37.7 kB / 1.024 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004858/0.2496, allocations: 440.3 kB / 1.025 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.2498, allocations: 114.4 kB / 1.025 GB, free: 12.53 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.417e-05/0.2499, allocations: 8 kB / 1.025 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001744/0.25, allocations: 333.9 kB / 1.025 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000598/0.2507, allocations: 205.1 kB / 1.025 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007319/0.2514, allocations: 359.6 kB / 1.026 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006423/0.2521, allocations: 255.7 kB / 1.026 GB, free: 11.32 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.914e-06/0.2521, allocations: 0 / 1.026 GB, free: 11.32 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001899/0.254, allocations: 0.729 MB / 1.027 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.000637/0.2547, allocations: 1.091 MB / 1.028 GB, free: 9.398 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.2547, allocations: 4 kB / 1.028 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.2547, allocations: 4 kB / 1.028 GB, free: 9.391 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.256, allocations: 176.3 kB / 1.028 GB, free: 9.219 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/0.2575, allocations: 1.778 MB / 1.03 GB, free: 7.371 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.2586, allocations: 115.3 kB / 1.03 GB, free: 7.258 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.2587, allocations: 31.98 kB / 1.03 GB, free: 7.227 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.2587, allocations: 11.98 kB / 1.03 GB, free: 7.215 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001639/0.2604, allocations: 0.6387 MB / 1.03 GB, free: 6.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.2604, allocations: 4 kB / 1.03 GB, free: 6.566 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.2604, allocations: 4 kB / 1.03 GB, free: 6.562 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007199/0.2611, allocations: 135.8 kB / 1.03 GB, free: 6.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/0.2612, allocations: 7.938 kB / 1.03 GB, free: 6.422 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008809/0.2621, allocations: 99.62 kB / 1.031 GB, free: 6.324 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-05/0.2622, allocations: 27.98 kB / 1.031 GB, free: 6.297 MB / 0.6511 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.0006245/0.2628, allocations: 346.7 kB / 1.031 GB, free: 5.941 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.263, allocations: 94.83 kB / 1.031 GB, free: 5.848 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.2648, allocations: 0.6711 MB / 1.032 GB, free: 5.164 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.2649, allocations: 12 kB / 1.032 GB, free: 5.152 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.2649, allocations: 3.984 kB / 1.032 GB, free: 5.148 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.79e-06/0.2649, allocations: 0 / 1.032 GB, free: 5.148 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003121/0.2681, allocations: 1.523 MB / 1.033 GB, free: 3.555 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/0.2681, allocations: 4 kB / 1.033 GB, free: 3.551 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006005/0.2687, allocations: 95.86 kB / 1.033 GB, free: 3.457 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-05/0.2687, allocations: 4 kB / 1.033 GB, free: 3.453 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-05/0.2688, allocations: 15.92 kB / 1.033 GB, free: 3.438 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001281/0.2701, allocations: 1.766 MB / 1.035 GB, free: 1.602 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.471e-06/0.2701, allocations: 32 / 1.035 GB, free: 1.602 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.2725, allocations: 1.163 MB / 1.036 GB, free: 396 kB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004971/0.273, allocations: 223.7 kB / 1.036 GB, free: 152 kB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/0.2732, allocations: 19.89 kB / 1.036 GB, free: 132 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007426/0.274, allocations: 56 kB / 1.036 GB, free: 76 kB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.2741, allocations: 43.94 kB / 1.036 GB, free: 32 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.085e-05/0.2742, allocations: 19.98 kB / 1.036 GB, free: 12 kB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001047/0.2752, allocations: 0.5588 MB / 1.037 GB, free: 15.44 MB / 0.6667 GB Notification: Performance of sort global known variables: time 8.73e-07/0.2753, allocations: 0 / 1.037 GB, free: 15.44 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001737/0.277, allocations: 459.1 kB / 1.037 GB, free: 14.99 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.000916/0.278, allocations: 325.5 kB / 1.038 GB, free: 14.67 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.00307/0.281, allocations: 1.027 MB / 1.039 GB, free: 13.62 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 9.617e-06/0.2811, allocations: 4 kB / 1.039 GB, free: 13.62 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0009778/0.2821, allocations: 352.2 kB / 1.039 GB, free: 13.26 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002428/0.2845, allocations: 379 kB / 1.039 GB, free: 12.89 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003858/0.2884, allocations: 1.709 MB / 1.041 GB, free: 11.14 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008796/0.2894, allocations: 1.021 MB / 1.042 GB, free: 10.1 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.000971/0.2904, allocations: 154.1 kB / 1.042 GB, free: 9.945 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.2906, allocations: 67.41 kB / 1.042 GB, free: 9.879 MB / 0.6667 GB Notification: Performance of SimCode: time 5.769e-06/0.2906, allocations: 0 / 1.042 GB, free: 9.879 MB / 0.6667 GB Notification: Performance of Templates: time 0.03981/0.3304, allocations: 15.54 MB / 1.058 GB, free: 10.51 MB / 0.6823 GB