Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.467/2.467, allocations: 387.4 MB / 394.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 192.4 kB / 487.4 MB, free: 5.059 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000939/0.0009388, allocations: 110 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.924e-05/1.928e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3035, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.032/1.336, allocations: 400.1 MB / 1.597 GB, free: 5.965 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/1.336, allocations: 93.2 kB / 1.597 GB, free: 5.918 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.206/2.542, allocations: 305.1 MB / 1.895 GB, free: 316.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.472e-06/2.542, allocations: 0 / 1.895 GB, free: 316.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 6.807e-05/2.542, allocations: 24 kB / 1.895 GB, free: 316.8 MB / 1.151 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.001933/2.544, allocations: 1.255 MB / 1.896 GB, free: 315.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/2.544, allocations: 8.031 kB / 1.896 GB, free: 315.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/2.544, allocations: 126.5 kB / 1.896 GB, free: 315.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009564/2.545, allocations: 0.6662 MB / 1.897 GB, free: 314.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/2.545, allocations: 16 kB / 1.897 GB, free: 314.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.457e-05/2.545, allocations: 40 kB / 1.897 GB, free: 314.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005638/2.546, allocations: 398.5 kB / 1.897 GB, free: 314.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007334/2.546, allocations: 0.574 MB / 1.898 GB, free: 313.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/2.546, allocations: 3.938 kB / 1.898 GB, free: 313.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.714e-05/2.546, allocations: 11.89 kB / 1.898 GB, free: 313.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/2.546, allocations: 12 kB / 1.898 GB, free: 313.6 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.00273/2.549, allocations: 2.473 MB / 1.9 GB, free: 311 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004309/2.55, allocations: 339.2 kB / 1.9 GB, free: 310.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/2.55, allocations: 180.8 kB / 1.901 GB, free: 310.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002575/2.55, allocations: 347.6 kB / 1.901 GB, free: 310.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003492/2.55, allocations: 309.5 kB / 1.901 GB, free: 309.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=37): time 1.663e-06/2.55, allocations: 0 / 1.901 GB, free: 309.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=37): time 0.001349/2.552, allocations: 0.6158 MB / 1.902 GB, free: 309.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/2.552, allocations: 235.6 kB / 1.902 GB, free: 308.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005374/2.552, allocations: 0.5985 MB / 1.903 GB, free: 308.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/2.552, allocations: 33.7 kB / 1.903 GB, free: 308.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/2.553, allocations: 439.8 kB / 1.903 GB, free: 307.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.12e-05/2.553, allocations: 118.3 kB / 1.903 GB, free: 307.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-05/2.553, allocations: 0 / 1.903 GB, free: 307.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.621e-05/2.553, allocations: 334 kB / 1.904 GB, free: 307.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002359/2.553, allocations: 193.6 kB / 1.904 GB, free: 307.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003052/2.553, allocations: 379.3 kB / 1.904 GB, free: 306.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007435/2.554, allocations: 313.7 kB / 1.904 GB, free: 306.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/2.554, allocations: 0 / 1.904 GB, free: 306.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001278/2.555, allocations: 0.7587 MB / 1.905 GB, free: 305.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002011/2.556, allocations: 1.082 MB / 1.906 GB, free: 304.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/2.556, allocations: 4 kB / 1.906 GB, free: 304.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/2.556, allocations: 15.94 kB / 1.906 GB, free: 304.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008894/2.557, allocations: 162.1 kB / 1.906 GB, free: 304.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006437/2.557, allocations: 1.787 MB / 1.908 GB, free: 302.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007138/2.558, allocations: 107.5 kB / 1.908 GB, free: 302.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.321e-05/2.558, allocations: 35.98 kB / 1.908 GB, free: 302.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.987e-06/2.558, allocations: 7.953 kB / 1.908 GB, free: 302.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001143/2.559, allocations: 0.6447 MB / 1.909 GB, free: 301.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/2.559, allocations: 4 kB / 1.909 GB, free: 301.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.502e-06/2.559, allocations: 4 kB / 1.909 GB, free: 301.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/2.56, allocations: 136.1 kB / 1.909 GB, free: 301.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/2.56, allocations: 4 kB / 1.909 GB, free: 301.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006174/2.56, allocations: 95.52 kB / 1.909 GB, free: 301.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.837e-05/2.56, allocations: 31.98 kB / 1.909 GB, free: 301.3 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * 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.0001546/2.561, allocations: 160.2 kB / 1.909 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.929e-05/2.561, allocations: 90.92 kB / 1.909 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001455/2.562, allocations: 0.7135 MB / 1.91 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/2.562, allocations: 8 kB / 1.91 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/2.562, allocations: 0 / 1.91 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/2.562, allocations: 4.078 kB / 1.91 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/2.564, allocations: 1.514 MB / 1.912 GB, free: 298.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/2.564, allocations: 8.125 kB / 1.912 GB, free: 298.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004076/2.565, allocations: 95.86 kB / 1.912 GB, free: 298.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/2.565, allocations: 0 / 1.912 GB, free: 298.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.559e-05/2.565, allocations: 15.98 kB / 1.912 GB, free: 298.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004964/2.565, allocations: 1.774 MB / 1.913 GB, free: 296.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/2.565, allocations: 3.938 kB / 1.913 GB, free: 296.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/2.567, allocations: 1.216 MB / 1.915 GB, free: 295.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/2.567, allocations: 223.9 kB / 1.915 GB, free: 295.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/2.567, allocations: 16 kB / 1.915 GB, free: 295.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006201/2.568, allocations: 71.86 kB / 1.915 GB, free: 295.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/2.568, allocations: 43.92 kB / 1.915 GB, free: 295.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.096e-05/2.568, allocations: 23.98 kB / 1.915 GB, free: 295.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0004557/2.568, allocations: 463.1 kB / 1.915 GB, free: 294.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/2.568, allocations: 0 / 1.915 GB, free: 294.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00141/2.57, allocations: 498.5 kB / 1.916 GB, free: 294.2 MB / 1.151 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) * 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.0008119/2.571, allocations: 486.4 kB / 1.916 GB, free: 293.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001511/2.572, allocations: 0.9154 MB / 1.917 GB, free: 292.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/2.572, allocations: 0 / 1.917 GB, free: 292.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004091/2.573, allocations: 316.6 kB / 1.918 GB, free: 292.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001615/2.574, allocations: 302.2 kB / 1.918 GB, free: 292.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/2.576, allocations: 1.034 MB / 1.919 GB, free: 291.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/2.576, allocations: 1.026 MB / 1.92 GB, free: 290.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0007417/2.577, allocations: 184 kB / 1.92 GB, free: 289.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/2.577, allocations: 55.41 kB / 1.92 GB, free: 289.8 MB / 1.151 GB Notification: Performance of SimCode: time 4.81e-07/2.577, allocations: 0 / 1.92 GB, free: 289.8 MB / 1.151 GB Notification: Performance of Templates: time 0.02136/2.599, allocations: 15.56 MB / 1.935 GB, free: 274.5 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches