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/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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008309/0.008309, allocations: 99.64 kB / 15.73 MB, free: 6.469 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.001895/0.001895, allocations: 191.9 kB / 16.67 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 240.3 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.883/2.883, allocations: 461.9 MB / 0.7347 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 59.91 kB / 1.054 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4149/0.4164, allocations: 157.4 MB / 1.208 GB, free: 9.672 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00442/0.4208, allocations: 1.95 MB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001515/0.4224, allocations: 0.6973 MB / 1.21 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001947/0.4226, allocations: 7.938 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003276/0.4229, allocations: 91.62 kB / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001461/0.4232, allocations: 87.62 kB / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007397/0.4239, allocations: 190.2 kB / 1.211 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003478/0.4243, allocations: 263.4 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.4245, allocations: 73.81 kB / 1.211 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001586/0.4246, allocations: 123.6 kB / 1.211 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002649/0.4249, allocations: 143.5 kB / 1.211 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.529e-05/0.425, allocations: 20 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.4251, allocations: 99.92 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.527e-05/0.4252, allocations: 59.77 kB / 1.211 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.4254, allocations: 107.3 kB / 1.212 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004032/0.4258, allocations: 311 kB / 1.212 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.4258, allocations: 4 kB / 1.212 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.573e-06/0.4258, allocations: 0 / 1.212 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.265e-05/0.4258, allocations: 0 / 1.212 GB, free: 5.457 MB / 0.9669 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.0009341/0.4267, allocations: 0.578 MB / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.4268, allocations: 12.62 kB / 1.212 GB, free: 4.812 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.205e-05/0.4269, allocations: 28.56 kB / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005664/0.4275, allocations: 302.9 kB / 1.213 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.4275, allocations: 12.38 kB / 1.213 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.2e-05/0.4275, allocations: 16.28 kB / 1.213 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004205/0.428, allocations: 235.8 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.428, allocations: 0 / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.428, allocations: 4 kB / 1.213 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.428, allocations: 4 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002474/0.4283, allocations: 128.4 kB / 1.213 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009084/0.4292, allocations: 0.6886 MB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003559/0.4296, allocations: 162.5 kB / 1.214 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.4297, allocations: 109 kB / 1.214 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.4298, allocations: 0 / 1.214 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.4301, allocations: 169 kB / 1.214 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.4301, allocations: 0 / 1.214 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15): time 0.0007174/0.4308, allocations: 385.7 kB / 1.215 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.929e-05/0.4309, allocations: 140.5 kB / 1.215 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/0.4312, allocations: 278.7 kB / 1.215 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.4312, allocations: 29.7 kB / 1.215 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.4314, allocations: 160.1 kB / 1.215 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.787e-05/0.4314, allocations: 39.45 kB / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.949e-05/0.4315, allocations: 41.7 kB / 1.215 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.4316, allocations: 338.8 kB / 1.216 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.4318, allocations: 87.91 kB / 1.216 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.432, allocations: 129.1 kB / 1.216 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003354/0.4323, allocations: 244.2 kB / 1.216 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4324, allocations: 0 / 1.216 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004891/0.4329, allocations: 339.4 kB / 1.216 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/0.4329, allocations: 31.42 kB / 1.216 GB, free: 0.5039 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.4329, allocations: 4 kB / 1.216 GB, free: 0.5 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.4329, allocations: 0 / 1.216 GB, free: 0.5 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.4331, allocations: 23.98 kB / 1.216 GB, free: 488 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.4331, allocations: 8.078 kB / 1.216 GB, free: 480 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.4332, allocations: 27.83 kB / 1.216 GB, free: 452 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.4332, allocations: 4 kB / 1.216 GB, free: 448 kB / 0.9669 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 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001839/0.4334, allocations: 191.4 kB / 1.217 GB, free: 240 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.841e-05/0.4335, allocations: 23.72 kB / 1.217 GB, free: 216 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.2e-05/0.4335, allocations: 33.83 kB / 1.217 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.4336, allocations: 3.984 kB / 1.217 GB, free: 176 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4336, allocations: 4 kB / 1.217 GB, free: 172 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.4336, allocations: 3.984 kB / 1.217 GB, free: 168 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002847/0.4339, allocations: 289.4 kB / 1.217 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.4339, allocations: 0 / 1.217 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.434, allocations: 15.98 kB / 1.217 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.434, allocations: 0 / 1.217 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.434, allocations: 11.98 kB / 1.217 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.434, allocations: 3.938 kB / 1.217 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.434, allocations: 8 kB / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006916/0.4347, allocations: 466.2 kB / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.792e-05/0.4348, allocations: 100.8 kB / 1.217 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.001e-05/0.4349, allocations: 11.98 kB / 1.218 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.435, allocations: 15.98 kB / 1.218 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.877e-05/0.4351, allocations: 20.16 kB / 1.218 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.4351, allocations: 4 kB / 1.218 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001755/0.4353, allocations: 213.9 kB / 1.218 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4353, allocations: 0 / 1.218 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002877/0.4356, allocations: 60.06 kB / 1.218 GB, free: 14.88 MB / 0.9825 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002041/0.4358, allocations: 131.1 kB / 1.218 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005033/0.4363, allocations: 293 kB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4363, allocations: 4.188 kB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000224/0.4366, allocations: 191.3 kB / 1.218 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.4369, allocations: 34.44 kB / 1.218 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.4379, allocations: 473.2 kB / 1.219 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.4382, allocations: 0.7552 MB / 1.22 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.534e-05/0.4383, allocations: 17.55 kB / 1.22 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.584e-05/0.4384, allocations: 19.44 kB / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.4384, allocations: 0 / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of Templates: time 0.006824/0.4452, allocations: 2.918 MB / 1.222 GB, free: 10 MB / 0.9825 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches