Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.345/2.345, allocations: 390.5 MB / 398 MB, free: 10.93 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.001141/0.001141, allocations: 176 kB / 491.2 MB, free: 1.605 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.573/1.573, allocations: 221.5 MB / 0.7868 GB, free: 13.26 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000913/0.0009133, allocations: 95.84 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.043e-05/2.056e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3716/0.3716, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.279/1.65, allocations: 400.9 MB / 1.604 GB, free: 13.5 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/1.651, allocations: 89.39 kB / 1.604 GB, free: 13.45 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.599/3.249, allocations: 305.1 MB / 1.902 GB, free: 305.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.585e-06/3.249, allocations: 0 / 1.902 GB, free: 305.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000164/3.249, allocations: 35.3 kB / 1.902 GB, free: 305.4 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.003159/3.253, allocations: 1.248 MB / 1.903 GB, free: 304.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/3.253, allocations: 8.031 kB / 1.903 GB, free: 304.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005392/3.253, allocations: 126.6 kB / 1.903 GB, free: 304 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001679/3.255, allocations: 0.6573 MB / 1.904 GB, free: 303.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.362e-05/3.255, allocations: 31.97 kB / 1.904 GB, free: 303.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/3.255, allocations: 40 kB / 1.904 GB, free: 303.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007804/3.256, allocations: 394.5 kB / 1.904 GB, free: 302.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008948/3.257, allocations: 0.5811 MB / 1.905 GB, free: 302.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/3.257, allocations: 0 / 1.905 GB, free: 302.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.665e-05/3.257, allocations: 4 kB / 1.905 GB, free: 302.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/3.257, allocations: 12 kB / 1.905 GB, free: 302.2 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.003683/3.261, allocations: 2.474 MB / 1.907 GB, free: 299.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004556/3.261, allocations: 331.2 kB / 1.908 GB, free: 299.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000264/3.261, allocations: 188.8 kB / 1.908 GB, free: 299.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002668/3.262, allocations: 347.9 kB / 1.908 GB, free: 298.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003682/3.262, allocations: 321.1 kB / 1.908 GB, free: 298.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=37): time 2.505e-06/3.262, allocations: 0 / 1.908 GB, free: 298.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=37): time 0.001561/3.264, allocations: 0.6119 MB / 1.909 GB, free: 297.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.858e-05/3.264, allocations: 239.6 kB / 1.909 GB, free: 297.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007206/3.265, allocations: 0.5985 MB / 1.91 GB, free: 296.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.842e-05/3.265, allocations: 29.7 kB / 1.91 GB, free: 296.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002789/3.265, allocations: 439.9 kB / 1.91 GB, free: 296.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.324e-05/3.265, allocations: 118.3 kB / 1.91 GB, free: 296.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.912e-05/3.265, allocations: 0 / 1.91 GB, free: 296.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.82e-05/3.265, allocations: 329.9 kB / 1.911 GB, free: 295.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/3.265, allocations: 193.1 kB / 1.911 GB, free: 295.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/3.266, allocations: 387.3 kB / 1.911 GB, free: 295.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008488/3.267, allocations: 309.8 kB / 1.912 GB, free: 295 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/3.267, allocations: 0 / 1.912 GB, free: 295 MB / 1.151 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001506/3.268, allocations: 0.7548 MB / 1.912 GB, free: 294.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002599/3.268, allocations: 1.078 MB / 1.913 GB, free: 293.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/3.268, allocations: 4 kB / 1.913 GB, free: 293.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/3.268, allocations: 4.547 kB / 1.913 GB, free: 293.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009651/3.269, allocations: 175.7 kB / 1.914 GB, free: 292.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007766/3.27, allocations: 1.791 MB / 1.915 GB, free: 291 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008376/3.271, allocations: 111.4 kB / 1.915 GB, free: 290.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.052e-05/3.271, allocations: 35.92 kB / 1.915 GB, free: 290.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/3.271, allocations: 5.562 kB / 1.915 GB, free: 290.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001254/3.272, allocations: 0.6447 MB / 1.916 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/3.272, allocations: 4 kB / 1.916 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.224e-06/3.272, allocations: 4 kB / 1.916 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004799/3.273, allocations: 131.8 kB / 1.916 GB, free: 290.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/3.273, allocations: 8.281 kB / 1.916 GB, free: 290.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007614/3.274, allocations: 95.61 kB / 1.916 GB, free: 290 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.601e-05/3.274, allocations: 35.98 kB / 1.916 GB, free: 290 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.0001817/3.274, allocations: 150.6 kB / 1.916 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/3.274, allocations: 98.77 kB / 1.917 GB, free: 289.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/3.276, allocations: 0.7021 MB / 1.917 GB, free: 289 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/3.276, allocations: 16 kB / 1.917 GB, free: 289 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/3.276, allocations: 0 / 1.917 GB, free: 289 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/3.276, allocations: 3.984 kB / 1.917 GB, free: 289 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/3.278, allocations: 1.515 MB / 1.919 GB, free: 287.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/3.278, allocations: 4 kB / 1.919 GB, free: 287.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003882/3.278, allocations: 108 kB / 1.919 GB, free: 287.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/3.279, allocations: 0 / 1.919 GB, free: 287.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/3.279, allocations: 12.08 kB / 1.919 GB, free: 287.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005429/3.279, allocations: 1.77 MB / 1.921 GB, free: 285.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/3.279, allocations: 0 / 1.921 GB, free: 285.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001643/3.281, allocations: 1.217 MB / 1.922 GB, free: 284.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003417/3.281, allocations: 231.8 kB / 1.922 GB, free: 284 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001776/3.281, allocations: 15.95 kB / 1.922 GB, free: 283.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/3.282, allocations: 67.91 kB / 1.922 GB, free: 283.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/3.282, allocations: 43.92 kB / 1.922 GB, free: 283.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.146e-05/3.282, allocations: 23.98 kB / 1.922 GB, free: 283.8 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0005078/3.283, allocations: 459.1 kB / 1.923 GB, free: 283.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/3.283, allocations: 0 / 1.923 GB, free: 283.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002073/3.285, allocations: 494.9 kB / 1.923 GB, free: 282.9 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.001748/3.286, allocations: 486.5 kB / 1.924 GB, free: 282.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001862/3.288, allocations: 0.9203 MB / 1.924 GB, free: 281.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/3.288, allocations: 4 kB / 1.924 GB, free: 281.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004941/3.289, allocations: 321.2 kB / 1.925 GB, free: 281.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001897/3.291, allocations: 296.8 kB / 1.925 GB, free: 280.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/3.293, allocations: 1.044 MB / 1.926 GB, free: 279.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005344/3.294, allocations: 1.022 MB / 1.927 GB, free: 278.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0008314/3.294, allocations: 184 kB / 1.927 GB, free: 278.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/3.295, allocations: 55.41 kB / 1.927 GB, free: 278.5 MB / 1.151 GB Notification: Performance of SimCode: time 5.91e-07/3.295, allocations: 0 / 1.927 GB, free: 278.5 MB / 1.151 GB Notification: Performance of Templates: time 0.02755/3.322, allocations: 15.55 MB / 1.942 GB, free: 263.1 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches