Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi",fileNamePrefix="Buildings_10_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.001254/0.001254, allocations: 92.08 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 180.7 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.712/2.712, allocations: 437.8 MB / 0.7128 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.000368, allocations: 8 kB / 0.8735 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7132/0.7136, allocations: 153.8 MB / 1.024 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.03799/0.7517, allocations: 22.52 MB / 1.046 GB, free: 9.25 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0153/0.767, allocations: 6.494 MB / 1.052 GB, free: 2.738 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.7688, allocations: 23.81 kB / 1.052 GB, free: 2.715 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.7703, allocations: 326.2 kB / 1.052 GB, free: 2.395 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.004591/0.7749, allocations: 0.9914 MB / 1.053 GB, free: 1.402 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.004358/0.7793, allocations: 0.9633 MB / 1.054 GB, free: 460 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.004629/0.784, allocations: 2.495 MB / 1.057 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001729/0.7857, allocations: 0.6184 MB / 1.057 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.7881, allocations: 0.731 MB / 1.058 GB, free: 12.58 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001859/0.7899, allocations: 0.6768 MB / 1.059 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0003016/0.7903, allocations: 36 kB / 1.059 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003088/0.7934, allocations: 0.9436 MB / 1.06 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000461/0.7938, allocations: 171.1 kB / 1.06 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.795, allocations: 478.9 kB / 1.06 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002392/0.7974, allocations: 1.037 MB / 1.061 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.7975, allocations: 0 / 1.061 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.535e-06/0.7975, allocations: 0 / 1.061 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.191e-05/0.7976, allocations: 0 / 1.061 GB, free: 9.238 MB / 0.8106 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.003573/0.8011, allocations: 1.251 MB / 1.062 GB, free: 7.93 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.8012, allocations: 8.031 kB / 1.062 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000415/0.8016, allocations: 115.6 kB / 1.063 GB, free: 7.809 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001914/0.8036, allocations: 0.6832 MB / 1.063 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.724e-05/0.8037, allocations: 53.31 kB / 1.063 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002062/0.8039, allocations: 60 kB / 1.063 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001922/0.8058, allocations: 0.6702 MB / 1.064 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.8e-05/0.8059, allocations: 4 kB / 1.064 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-05/0.806, allocations: 24 kB / 1.064 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/0.806, allocations: 12 kB / 1.064 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00144/0.8075, allocations: 464.9 kB / 1.065 GB, free: 5.77 MB / 0.8106 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.005796/0.8133, allocations: 2.549 MB / 1.067 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.8144, allocations: 367.9 kB / 1.067 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005274/0.8149, allocations: 196.8 kB / 1.068 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004456/0.8154, allocations: 340.4 kB / 1.068 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008477/0.8163, allocations: 337.1 kB / 1.068 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=37): time 5.3e-06/0.8163, allocations: 0 / 1.068 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of matching and sorting (n=37): time 0.00211/0.8184, allocations: 0.7077 MB / 1.069 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001731/0.8186, allocations: 247.2 kB / 1.069 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001752/0.8204, allocations: 0.8445 MB / 1.07 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.8205, allocations: 41.64 kB / 1.07 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005364/0.821, allocations: 436.6 kB / 1.07 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.8212, allocations: 122.3 kB / 1.071 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.8214, allocations: 61.67 kB / 1.071 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.8215, allocations: 322 kB / 1.071 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006065/0.8222, allocations: 213.1 kB / 1.071 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000823/0.823, allocations: 371.7 kB / 1.071 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.8243, allocations: 0.5417 MB / 1.072 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.8243, allocations: 0 / 1.072 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001676/0.826, allocations: 0.7489 MB / 1.073 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.000169/0.8262, allocations: 206.1 kB / 1.073 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.8262, allocations: 4 kB / 1.073 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.8262, allocations: 4 kB / 1.073 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.8275, allocations: 179.7 kB / 1.073 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.8287, allocations: 1.782 MB / 1.075 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.8299, allocations: 111.3 kB / 1.075 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.8301, allocations: 27.98 kB / 1.075 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.8301, allocations: 4.938 kB / 1.075 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002032/0.8321, allocations: 0.6425 MB / 1.076 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.8322, allocations: 4.547 kB / 1.076 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.8322, allocations: 7.938 kB / 1.076 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007426/0.833, allocations: 131.8 kB / 1.076 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.762e-05/0.833, allocations: 8.297 kB / 1.076 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009976/0.834, allocations: 107.4 kB / 1.076 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.75e-05/0.8341, allocations: 24 kB / 1.076 GB, free: 9.543 MB / 0.8262 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 (mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,$whenCondition1,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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006237/0.8347, allocations: 346.6 kB / 1.076 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.835, allocations: 94.78 kB / 1.076 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001876/0.8369, allocations: 0.6945 MB / 1.077 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.8369, allocations: 4 kB / 1.077 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.8369, allocations: 0 / 1.077 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.8369, allocations: 0 / 1.077 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003295/0.8402, allocations: 1.523 MB / 1.078 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.8403, allocations: 7.938 kB / 1.078 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006673/0.8409, allocations: 87.88 kB / 1.079 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.215e-05/0.841, allocations: 4 kB / 1.079 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.572e-05/0.841, allocations: 16 kB / 1.079 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001294/0.8423, allocations: 1.766 MB / 1.08 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.73e-05/0.8424, allocations: 12.09 kB / 1.08 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/0.8448, allocations: 1.123 MB / 1.081 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005621/0.8454, allocations: 219.8 kB / 1.082 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002512/0.8456, allocations: 16 kB / 1.082 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009563/0.8466, allocations: 55.86 kB / 1.082 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.8468, allocations: 47.86 kB / 1.082 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.068e-05/0.8469, allocations: 16 kB / 1.082 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001353/0.8482, allocations: 0.5787 MB / 1.082 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.9e-07/0.8482, allocations: 0 / 1.082 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.002324/0.8506, allocations: 463.1 kB / 1.083 GB, free: 2.266 MB / 0.8262 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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001248/0.8518, allocations: 345.4 kB / 1.083 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003571/0.8554, allocations: 1.036 MB / 1.084 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/0.8555, allocations: 4 kB / 1.084 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007948/0.8563, allocations: 355.6 kB / 1.084 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003662/0.8599, allocations: 363.8 kB / 1.085 GB, free: 164 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004432/0.8644, allocations: 1.854 MB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000988/0.8654, allocations: 0.9973 MB / 1.088 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.8658, allocations: 71.41 kB / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of SimCode: time 9.62e-07/0.8658, allocations: 0 / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of Templates: time 0.04565/0.9115, allocations: 23.76 MB / 1.111 GB, free: 5.5 MB / 0.8575 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches