Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.383/1.383, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00117/0.00117, allocations: 187.6 kB / 326.5 MB, free: 2.262 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.913/1.913, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008758/0.0008759, allocations: 96.69 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003411/0.0003412, allocations: 11.34 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2638, allocations: 106.3 MB / 0.9001 GB, free: 64 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1883/0.4522, allocations: 134.9 MB / 1.032 GB, free: 8.914 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.4525, allocations: 79.95 kB / 1.032 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.017/0.4695, allocations: 5.835 MB / 1.038 GB, free: 2.988 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.424e-06/0.4696, allocations: 0 / 1.038 GB, free: 2.988 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.946e-05/0.4696, allocations: 4 kB / 1.038 GB, free: 2.984 MB / 0.6823 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.0009027/0.4705, allocations: 0.5994 MB / 1.038 GB, free: 2.332 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.4706, allocations: 8.031 kB / 1.038 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.07e-05/0.4706, allocations: 35.56 kB / 1.038 GB, free: 2.289 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004607/0.4711, allocations: 297.5 kB / 1.039 GB, free: 1.961 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.4712, allocations: 12 kB / 1.039 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.72e-05/0.4712, allocations: 12 kB / 1.039 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.4717, allocations: 259.1 kB / 1.039 GB, free: 1.656 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.4717, allocations: 0 / 1.039 GB, free: 1.656 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.64e-05/0.4717, allocations: 8 kB / 1.039 GB, free: 1.648 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.4717, allocations: 7.984 kB / 1.039 GB, free: 1.641 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003106/0.4721, allocations: 164.3 kB / 1.039 GB, free: 1.48 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009901/0.4731, allocations: 0.7354 MB / 1.04 GB, free: 0.6875 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004763/0.4735, allocations: 226.4 kB / 1.04 GB, free: 468 kB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.4736, allocations: 0 / 1.04 GB, free: 468 kB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003634/0.4739, allocations: 205.1 kB / 1.04 GB, free: 244 kB / 0.6823 GB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.474, allocations: 0 / 1.04 GB, free: 244 kB / 0.6823 GB Notification: Performance of matching and sorting (n=15): time 0.001008/0.475, allocations: 0.5606 MB / 1.041 GB, free: 15.64 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.906e-05/0.4751, allocations: 136.5 kB / 1.041 GB, free: 15.48 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.4753, allocations: 245.9 kB / 1.041 GB, free: 15.23 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.4754, allocations: 33.7 kB / 1.041 GB, free: 15.19 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.4755, allocations: 160.1 kB / 1.041 GB, free: 15.03 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/0.4755, allocations: 39.45 kB / 1.041 GB, free: 14.99 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.4755, allocations: 4 kB / 1.041 GB, free: 14.99 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4757, allocations: 338.8 kB / 1.042 GB, free: 14.65 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.4759, allocations: 120.1 kB / 1.042 GB, free: 14.53 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.4762, allocations: 160.8 kB / 1.042 GB, free: 14.36 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002225/0.4764, allocations: 145.6 kB / 1.042 GB, free: 14.21 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4764, allocations: 0 / 1.042 GB, free: 14.21 MB / 0.698 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000683/0.4771, allocations: 414.8 kB / 1.042 GB, free: 13.79 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.324e-05/0.4772, allocations: 41.62 kB / 1.042 GB, free: 13.74 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4772, allocations: 0 / 1.042 GB, free: 13.74 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.4772, allocations: 4 kB / 1.042 GB, free: 13.74 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.4774, allocations: 36.02 kB / 1.042 GB, free: 13.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.4774, allocations: 4 kB / 1.042 GB, free: 13.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.4776, allocations: 35.88 kB / 1.042 GB, free: 13.66 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.4776, allocations: 12 kB / 1.042 GB, free: 13.65 MB / 0.698 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 () * Number of clocked 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.000208/0.4778, allocations: 196.5 kB / 1.043 GB, free: 13.45 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.4779, allocations: 31.66 kB / 1.043 GB, free: 13.42 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.739e-05/0.478, allocations: 25.84 kB / 1.043 GB, free: 13.39 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.478, allocations: 3.938 kB / 1.043 GB, free: 13.39 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.478, allocations: 4.078 kB / 1.043 GB, free: 13.38 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.478, allocations: 3.938 kB / 1.043 GB, free: 13.38 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002938/0.4783, allocations: 301.5 kB / 1.043 GB, free: 13.04 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.4783, allocations: 0 / 1.043 GB, free: 13.04 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.4784, allocations: 20 kB / 1.043 GB, free: 13.02 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.4784, allocations: 7.938 kB / 1.043 GB, free: 13.01 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.4785, allocations: 8 kB / 1.043 GB, free: 13 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4785, allocations: 4 kB / 1.043 GB, free: 13 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4785, allocations: 0 / 1.043 GB, free: 13 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.4795, allocations: 0.5796 MB / 1.044 GB, free: 12.39 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.067e-05/0.4796, allocations: 100.9 kB / 1.044 GB, free: 12.28 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.619e-05/0.4797, allocations: 11.95 kB / 1.044 GB, free: 12.27 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.4798, allocations: 36.03 kB / 1.044 GB, free: 12.23 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.734e-05/0.4799, allocations: 23.95 kB / 1.044 GB, free: 12.21 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.4799, allocations: 8 kB / 1.044 GB, free: 12.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001999/0.4802, allocations: 205.9 kB / 1.044 GB, free: 12 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4802, allocations: 0 / 1.044 GB, free: 12 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003217/0.4805, allocations: 67.91 kB / 1.044 GB, free: 11.93 MB / 0.698 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) * Number of clocked states: 0 () * 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.0002416/0.4807, allocations: 136.8 kB / 1.044 GB, free: 11.79 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005534/0.4813, allocations: 327.4 kB / 1.044 GB, free: 11.46 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4813, allocations: 0 / 1.044 GB, free: 11.46 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.4816, allocations: 199.3 kB / 1.045 GB, free: 11.25 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.4819, allocations: 24.55 kB / 1.045 GB, free: 11.23 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.4829, allocations: 0.5186 MB / 1.045 GB, free: 10.69 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.4833, allocations: 0.7674 MB / 1.046 GB, free: 9.895 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 8.227e-05/0.4834, allocations: 17.42 kB / 1.046 GB, free: 9.875 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.821e-05/0.4835, allocations: 15.44 kB / 1.046 GB, free: 9.859 MB / 0.698 GB Notification: Performance of SimCode: time 6.01e-07/0.4835, allocations: 0 / 1.046 GB, free: 9.859 MB / 0.698 GB Notification: Performance of Templates: time 0.005835/0.4893, allocations: 2.514 MB / 1.048 GB, free: 7.367 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches