Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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.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_10_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_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 91.38 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001932/0.001932, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 223.3 MB / 240 MB, free: 5.34 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.735/2.735, allocations: 437.7 MB / 0.7117 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004745/0.0004745, allocations: 8 kB / 0.8722 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.999/0.9995, allocations: 153.8 MB / 1.022 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003777/1.003, allocations: 1.623 MB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001955/1.005, allocations: 0.6628 MB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/1.006, allocations: 7.875 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002852/1.006, allocations: 75.77 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002276/1.006, allocations: 79.75 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008425/1.007, allocations: 127.8 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004797/1.007, allocations: 219.4 kB / 1.025 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002185/1.008, allocations: 53.64 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000241/1.008, allocations: 87.67 kB / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002889/1.008, allocations: 123.5 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.474e-05/1.008, allocations: 8 kB / 1.025 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/1.009, allocations: 71.88 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.6e-05/1.009, allocations: 35.84 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.818e-05/1.009, allocations: 65.56 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004123/1.009, allocations: 221.5 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/1.009, allocations: 0 / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.533e-06/1.009, allocations: 0 / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.155e-05/1.009, allocations: 0 / 1.026 GB, free: 12.64 MB / 0.7794 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.001211/1.01, allocations: 0.5485 MB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/1.011, allocations: 8.562 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/1.011, allocations: 27.72 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006601/1.011, allocations: 297.5 kB / 1.027 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/1.011, allocations: 12 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.579e-05/1.011, allocations: 19.94 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006389/1.012, allocations: 223.1 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/1.012, allocations: 7.984 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/1.012, allocations: 4 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/1.012, allocations: 4 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004615/1.013, allocations: 132.3 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/1.014, allocations: 0.6848 MB / 1.028 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006087/1.015, allocations: 182.4 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/1.015, allocations: 101 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/1.015, allocations: 0 / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005018/1.016, allocations: 177 kB / 1.028 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 5.09e-06/1.016, allocations: 4.094 kB / 1.028 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.001142/1.017, allocations: 388.6 kB / 1.028 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/1.017, allocations: 132.5 kB / 1.029 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005047/1.017, allocations: 278.7 kB / 1.029 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/1.017, allocations: 33.7 kB / 1.029 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/1.018, allocations: 160.2 kB / 1.029 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/1.018, allocations: 47.53 kB / 1.029 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.432e-05/1.018, allocations: 3.938 kB / 1.029 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002476/1.018, allocations: 338.8 kB / 1.029 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/1.018, allocations: 80.16 kB / 1.029 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003337/1.019, allocations: 146 kB / 1.03 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/1.019, allocations: 113.6 kB / 1.03 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/1.019, allocations: 4.031 kB / 1.03 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008064/1.02, allocations: 336.6 kB / 1.03 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.911e-05/1.02, allocations: 41.69 kB / 1.03 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/1.02, allocations: 0 / 1.03 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.601e-05/1.02, allocations: 11.94 kB / 1.03 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/1.02, allocations: 32.02 kB / 1.03 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/1.02, allocations: 0 / 1.03 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/1.02, allocations: 31.83 kB / 1.03 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.48e-05/1.02, allocations: 4 kB / 1.03 GB, free: 7.781 MB / 0.7794 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.0002581/1.021, allocations: 191.5 kB / 1.03 GB, free: 7.578 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.572e-05/1.021, allocations: 27.72 kB / 1.03 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.966e-05/1.021, allocations: 29.83 kB / 1.03 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/1.021, allocations: 7.953 kB / 1.03 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/1.021, allocations: 0 / 1.03 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/1.021, allocations: 0 / 1.03 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003849/1.021, allocations: 297.3 kB / 1.031 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.021, allocations: 3.938 kB / 1.031 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/1.022, allocations: 19.98 kB / 1.031 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/1.022, allocations: 0 / 1.031 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/1.022, allocations: 8 kB / 1.031 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/1.022, allocations: 0 / 1.031 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.022, allocations: 3.953 kB / 1.031 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/1.023, allocations: 478.3 kB / 1.031 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/1.023, allocations: 96.8 kB / 1.031 GB, free: 6.535 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.902e-05/1.023, allocations: 12 kB / 1.031 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/1.023, allocations: 11.98 kB / 1.031 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/1.023, allocations: 27.95 kB / 1.031 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/1.023, allocations: 11.94 kB / 1.031 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003255/1.024, allocations: 202 kB / 1.032 GB, free: 6.277 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.11e-07/1.024, allocations: 4.062 kB / 1.032 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005281/1.024, allocations: 55.89 kB / 1.032 GB, free: 6.219 MB / 0.7794 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * 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.0003345/1.025, allocations: 137.1 kB / 1.032 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008292/1.025, allocations: 311.3 kB / 1.032 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/1.025, allocations: 0 / 1.032 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0004124/1.026, allocations: 183.4 kB / 1.032 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005234/1.026, allocations: 36.48 kB / 1.032 GB, free: 5.539 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/1.028, allocations: 0.5224 MB / 1.033 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005261/1.029, allocations: 0.7519 MB / 1.033 GB, free: 4.215 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001705/1.029, allocations: 21.53 kB / 1.034 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.67e-05/1.029, allocations: 15.44 kB / 1.034 GB, free: 4.172 MB / 0.7794 GB Notification: Performance of SimCode: time 5.72e-07/1.029, allocations: 0 / 1.034 GB, free: 4.172 MB / 0.7794 GB Notification: Performance of Templates: time 0.00863/1.038, allocations: 2.444 MB / 1.036 GB, free: 1.746 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches