Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.316/2.316, allocations: 251.3 MB / 266.2 MB, free: 11.52 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001297/0.001297, allocations: 179.7 kB / 325.8 MB, free: 2.785 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.868/2.868, allocations: 205.4 MB / 0.5767 GB, free: 21.07 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008811/0.0008808, allocations: 90.09 kB / 0.6812 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004583/0.0004585, allocations: 16.66 kB / 0.7953 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2019, allocations: 106.3 MB / 0.899 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02904/0.231, allocations: 21.58 MB / 0.9201 GB, free: 44.24 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01762/0.2486, allocations: 9.084 MB / 0.929 GB, free: 35.14 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001664/0.2504, allocations: 31.69 kB / 0.929 GB, free: 35.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.2519, allocations: 290.3 kB / 0.9293 GB, free: 34.82 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.003683/0.2556, allocations: 0.8745 MB / 0.9301 GB, free: 33.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.003738/0.2593, allocations: 0.8949 MB / 0.931 GB, free: 33.06 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.003352/0.2627, allocations: 2.149 MB / 0.9331 GB, free: 30.9 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001374/0.2641, allocations: 0.6156 MB / 0.9337 GB, free: 30.27 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001878/0.266, allocations: 0.6807 MB / 0.9344 GB, free: 29.59 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.2674, allocations: 0.634 MB / 0.935 GB, free: 28.95 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001924/0.2676, allocations: 32 kB / 0.935 GB, free: 28.92 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002363/0.27, allocations: 0.8656 MB / 0.9359 GB, free: 28.05 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0002918/0.2703, allocations: 159.2 kB / 0.936 GB, free: 27.89 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0003926/0.2708, allocations: 193.2 kB / 0.9362 GB, free: 27.7 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.002006/0.2728, allocations: 1.025 MB / 0.9372 GB, free: 26.67 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2728, allocations: 3.938 kB / 0.9372 GB, free: 26.67 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.154e-06/0.2728, allocations: 8 kB / 0.9372 GB, free: 26.66 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.884e-05/0.2729, allocations: 0 / 0.9372 GB, free: 26.66 MB / 0.6042 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.002906/0.2758, allocations: 1.234 MB / 0.9384 GB, free: 25.37 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.2758, allocations: 8.031 kB / 0.9384 GB, free: 25.36 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002756/0.2761, allocations: 115.5 kB / 0.9385 GB, free: 25.25 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001567/0.2777, allocations: 0.6449 MB / 0.9392 GB, free: 24.57 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.845e-05/0.2778, allocations: 49.31 kB / 0.9392 GB, free: 24.52 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/0.2779, allocations: 60 kB / 0.9393 GB, free: 24.46 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.2794, allocations: 0.6663 MB / 0.9399 GB, free: 23.75 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.2795, allocations: 8 kB / 0.9399 GB, free: 23.74 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-05/0.2796, allocations: 20 kB / 0.94 GB, free: 23.72 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.2796, allocations: 12 kB / 0.94 GB, free: 23.71 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.2808, allocations: 456.9 kB / 0.9404 GB, free: 23.26 MB / 0.6042 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.004891/0.2857, allocations: 2.534 MB / 0.9429 GB, free: 20.6 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.2868, allocations: 358.7 kB / 0.9432 GB, free: 20.24 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004892/0.2874, allocations: 196.8 kB / 0.9434 GB, free: 20.04 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002934/0.2877, allocations: 344.4 kB / 0.9437 GB, free: 19.63 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007475/0.2884, allocations: 325.3 kB / 0.9441 GB, free: 19.28 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 2.895e-06/0.2885, allocations: 0.5469 kB / 0.9441 GB, free: 19.28 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.00196/0.2904, allocations: 0.6953 MB / 0.9447 GB, free: 18.57 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.972e-05/0.2905, allocations: 239.3 kB / 0.945 GB, free: 18.29 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.2919, allocations: 0.8361 MB / 0.9458 GB, free: 17.43 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.292, allocations: 45.7 kB / 0.9458 GB, free: 17.38 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003755/0.2924, allocations: 432.4 kB / 0.9462 GB, free: 16.95 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.2925, allocations: 114.3 kB / 0.9463 GB, free: 16.83 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-05/0.2926, allocations: 12 kB / 0.9464 GB, free: 16.82 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.133e-05/0.2927, allocations: 330 kB / 0.9467 GB, free: 16.49 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005867/0.2933, allocations: 201.1 kB / 0.9469 GB, free: 16.29 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000689/0.294, allocations: 363.6 kB / 0.9472 GB, free: 15.88 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006529/0.2946, allocations: 259.7 kB / 0.9475 GB, free: 15.62 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/0.2947, allocations: 0 / 0.9475 GB, free: 15.62 MB / 0.6042 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001869/0.2965, allocations: 0.729 MB / 0.9482 GB, free: 14.88 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001234/0.2967, allocations: 210.4 kB / 0.9484 GB, free: 14.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.2967, allocations: 0 / 0.9484 GB, free: 14.63 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.834e-05/0.2968, allocations: 8 kB / 0.9484 GB, free: 14.62 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001787/0.2986, allocations: 179.8 kB / 0.9485 GB, free: 14.45 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009308/0.2995, allocations: 1.777 MB / 0.9503 GB, free: 12.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.3008, allocations: 111.5 kB / 0.9504 GB, free: 12.49 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-05/0.3009, allocations: 31.98 kB / 0.9504 GB, free: 12.46 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.301, allocations: 4 kB / 0.9504 GB, free: 12.45 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001608/0.3026, allocations: 0.6349 MB / 0.951 GB, free: 11.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.3026, allocations: 4 kB / 0.951 GB, free: 11.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.3026, allocations: 7.938 kB / 0.9511 GB, free: 11.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009388/0.3036, allocations: 135.8 kB / 0.9512 GB, free: 11.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.3036, allocations: 4 kB / 0.9512 GB, free: 11.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.3048, allocations: 99.56 kB / 0.9513 GB, free: 11.56 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.572e-05/0.3049, allocations: 27.98 kB / 0.9513 GB, free: 11.54 MB / 0.6042 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.0005458/0.3054, allocations: 351.4 kB / 0.9516 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.3056, allocations: 94.81 kB / 0.9517 GB, free: 11.08 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001757/0.3074, allocations: 0.6786 MB / 0.9524 GB, free: 10.39 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.3074, allocations: 4 kB / 0.9524 GB, free: 10.39 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3075, allocations: 7.938 kB / 0.9524 GB, free: 10.38 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.3075, allocations: 7.984 kB / 0.9524 GB, free: 10.37 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002815/0.3103, allocations: 1.511 MB / 0.9539 GB, free: 8.789 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/0.3104, allocations: 0 / 0.9539 GB, free: 8.789 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007267/0.3111, allocations: 103.8 kB / 0.954 GB, free: 8.688 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.3111, allocations: 4 kB / 0.954 GB, free: 8.684 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.88e-05/0.3112, allocations: 12 kB / 0.954 GB, free: 8.672 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007312/0.3119, allocations: 1.774 MB / 0.9557 GB, free: 6.828 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3119, allocations: 0 / 0.9557 GB, free: 6.828 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.3141, allocations: 1.116 MB / 0.9568 GB, free: 5.684 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004648/0.3147, allocations: 215.8 kB / 0.957 GB, free: 5.453 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/0.3148, allocations: 15.98 kB / 0.957 GB, free: 5.438 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009281/0.3158, allocations: 59.86 kB / 0.9571 GB, free: 5.379 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.316, allocations: 55.73 kB / 0.9572 GB, free: 5.324 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.815e-05/0.316, allocations: 16 kB / 0.9572 GB, free: 5.309 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0009472/0.317, allocations: 0.5588 MB / 0.9577 GB, free: 4.738 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.01e-07/0.317, allocations: 0 / 0.9577 GB, free: 4.738 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001715/0.3187, allocations: 447.3 kB / 0.9581 GB, free: 4.301 MB / 0.6042 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.001011/0.3198, allocations: 351.8 kB / 0.9585 GB, free: 3.957 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003388/0.3232, allocations: 1.012 MB / 0.9595 GB, free: 2.926 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.3232, allocations: 4.188 kB / 0.9595 GB, free: 2.922 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.3243, allocations: 355.6 kB / 0.9598 GB, free: 2.562 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003772/0.3281, allocations: 379.9 kB / 0.9602 GB, free: 2.191 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.3321, allocations: 1.719 MB / 0.9619 GB, free: 444 kB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007316/0.3328, allocations: 0.9934 MB / 0.9628 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.001271/0.3342, allocations: 158.2 kB / 0.963 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003602/0.3346, allocations: 71.42 kB / 0.963 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of SimCode: time 1.132e-06/0.3346, allocations: 0 / 0.963 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of Templates: time 0.05089/0.3855, allocations: 15.5 MB / 0.9782 GB, free: 15.84 MB / 0.6355 GB make -j1 -f Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)