Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.203/2.203, allocations: 390.5 MB / 398 MB, free: 10.91 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.001201/0.001201, allocations: 183.2 kB / 491.2 MB, free: 1.547 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.669/1.669, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001005/0.001005, allocations: 91.89 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.086e-05/2.108e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.321, allocations: 143 MB / 1.212 GB, free: 39.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.031/1.353, allocations: 152.4 MB / 1.361 GB, free: 17.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/1.353, allocations: 84.41 kB / 1.361 GB, free: 17.5 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01581/1.369, allocations: 5.859 MB / 1.367 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.573e-06/1.369, allocations: 0 / 1.367 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.126e-05/1.369, allocations: 7.75 kB / 1.367 GB, free: 32.82 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007401/1.369, allocations: 0.5521 MB / 1.368 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/1.37, allocations: 7.844 kB / 1.368 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.14e-05/1.37, allocations: 35.05 kB / 1.368 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003948/1.37, allocations: 290.1 kB / 1.368 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/1.37, allocations: 7.875 kB / 1.368 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.489e-05/1.37, allocations: 7.625 kB / 1.368 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000237/1.37, allocations: 136 kB / 1.368 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002862/1.371, allocations: 215.9 kB / 1.368 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/1.371, allocations: 2.953 kB / 1.368 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/1.371, allocations: 4 kB / 1.368 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/1.371, allocations: 7.75 kB / 1.368 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008039/1.372, allocations: 0.6824 MB / 1.369 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001918/1.372, allocations: 149.7 kB / 1.369 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/1.372, allocations: 107.2 kB / 1.369 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/1.372, allocations: 3.844 kB / 1.369 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002109/1.372, allocations: 179.4 kB / 1.369 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/1.372, allocations: 0 / 1.369 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0005619/1.373, allocations: 305.5 kB / 1.37 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/1.373, allocations: 132.3 kB / 1.37 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/1.373, allocations: 225.4 kB / 1.37 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/1.373, allocations: 36.38 kB / 1.37 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.463e-05/1.373, allocations: 158.8 kB / 1.37 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.263e-05/1.373, allocations: 33.34 kB / 1.37 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.295e-05/1.373, allocations: 3.812 kB / 1.37 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001048/1.373, allocations: 336.6 kB / 1.37 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/1.373, allocations: 94.09 kB / 1.371 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/1.373, allocations: 136.5 kB / 1.371 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/1.374, allocations: 87.91 kB / 1.371 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/1.374, allocations: 0 / 1.371 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004129/1.374, allocations: 335.7 kB / 1.371 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/1.374, allocations: 37.62 kB / 1.371 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/1.374, allocations: 0 / 1.371 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/1.374, allocations: 4 kB / 1.371 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/1.374, allocations: 33.73 kB / 1.371 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/1.374, allocations: 3.812 kB / 1.371 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/1.374, allocations: 35.34 kB / 1.371 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/1.374, allocations: 15.53 kB / 1.371 GB, free: 30.55 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001055/1.375, allocations: 146.6 kB / 1.371 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/1.375, allocations: 30.83 kB / 1.371 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.019e-05/1.375, allocations: 26.27 kB / 1.371 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/1.375, allocations: 0 / 1.371 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/1.375, allocations: 3.906 kB / 1.371 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/1.375, allocations: 0 / 1.371 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/1.375, allocations: 266.3 kB / 1.372 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/1.375, allocations: 0 / 1.372 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/1.375, allocations: 26.05 kB / 1.372 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/1.375, allocations: 0 / 1.372 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/1.375, allocations: 14.7 kB / 1.372 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/1.375, allocations: 3.984 kB / 1.372 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/1.375, allocations: 0 / 1.372 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006252/1.376, allocations: 488.2 kB / 1.372 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.292e-05/1.376, allocations: 99.41 kB / 1.372 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.521e-05/1.376, allocations: 15.3 kB / 1.372 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/1.376, allocations: 32.88 kB / 1.372 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.037e-05/1.376, allocations: 30.5 kB / 1.372 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/1.376, allocations: 7.625 kB / 1.372 GB, free: 30 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001791/1.376, allocations: 182.2 kB / 1.373 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.172e-06/1.376, allocations: 4 kB / 1.373 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002884/1.377, allocations: 66.06 kB / 1.373 GB, free: 29.9 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * 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 (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002002/1.377, allocations: 140.2 kB / 1.373 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002934/1.377, allocations: 261.1 kB / 1.373 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.377, allocations: 0 / 1.373 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/1.377, allocations: 174.4 kB / 1.373 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/1.378, allocations: 29.64 kB / 1.373 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007523/1.378, allocations: 337.9 kB / 1.373 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/1.379, allocations: 0.7603 MB / 1.374 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.531e-05/1.379, allocations: 15.94 kB / 1.374 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/1.379, allocations: 17.84 kB / 1.374 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.379, allocations: 0 / 1.374 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of Templates: time 0.005062/1.384, allocations: 2.344 MB / 1.377 GB, free: 28.66 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches