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.001115/0.001115, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001149/0.001149, allocations: 195.9 kB / 16.14 MB, free: 6.711 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.412/1.412, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.745/2.745, allocations: 461.8 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 64.41 kB / 0.8984 GB, free: 37.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4184/0.4204, allocations: 157.4 MB / 1.052 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003596/0.4241, allocations: 2.011 MB / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.4255, allocations: 0.7245 MB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.4256, allocations: 7.938 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002409/0.4258, allocations: 79.77 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.426, allocations: 79.7 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.4266, allocations: 160.8 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.4269, allocations: 235.4 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.4271, allocations: 74.09 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.4272, allocations: 103.7 kB / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.4275, allocations: 139.5 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.569e-05/0.4275, allocations: 8 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.4277, allocations: 87.92 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.864e-05/0.4278, allocations: 47.77 kB / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.4279, allocations: 99.33 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003343/0.4282, allocations: 279.1 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4283, allocations: 0 / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.453e-06/0.4283, allocations: 0 / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.4283, allocations: 4 kB / 1.056 GB, free: 4.73 MB / 0.8106 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.0009182/0.4292, allocations: 0.5858 MB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.4293, allocations: 8.031 kB / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.157e-05/0.4293, allocations: 28.66 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/0.4298, allocations: 302.8 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.4298, allocations: 16.38 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.4299, allocations: 12.38 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004081/0.4303, allocations: 219.3 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.4303, allocations: 0 / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.4304, allocations: 8 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.4304, allocations: 7.938 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002508/0.4306, allocations: 132.3 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008943/0.4315, allocations: 0.6808 MB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.4319, allocations: 166.6 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.4321, allocations: 100.8 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.4321, allocations: 4 kB / 1.058 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003435/0.4325, allocations: 173 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 2.104e-06/0.4325, allocations: 0 / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.00067/0.4332, allocations: 375 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.585e-05/0.4332, allocations: 136.5 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002703/0.4335, allocations: 278.6 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.837e-05/0.4336, allocations: 33.7 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.4337, allocations: 164.1 kB / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.153e-05/0.4337, allocations: 43.44 kB / 1.059 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.329e-05/0.4338, allocations: 41.7 kB / 1.059 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.4339, allocations: 334.8 kB / 1.06 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.4341, allocations: 99.8 kB / 1.06 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001821/0.4343, allocations: 125.1 kB / 1.06 GB, free: 428 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.4346, allocations: 244.1 kB / 1.06 GB, free: 160 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.4346, allocations: 4 kB / 1.06 GB, free: 156 kB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005153/0.4351, allocations: 328 kB / 1.061 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.913e-05/0.4352, allocations: 41.69 kB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.4352, allocations: 0 / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.4352, allocations: 0 / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.4354, allocations: 36.02 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.4354, allocations: 96 / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.4355, allocations: 31.7 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.4356, allocations: 8 kB / 1.061 GB, free: 15.7 MB / 0.8262 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.0001821/0.4358, allocations: 196.9 kB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.164e-05/0.4358, allocations: 23.72 kB / 1.061 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.573e-05/0.4359, allocations: 29.83 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.4359, allocations: 4 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.4359, allocations: 0 / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.4359, allocations: 0 / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.4362, allocations: 293.4 kB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.4362, allocations: 4 kB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.4363, allocations: 15.98 kB / 1.061 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.4363, allocations: 0 / 1.061 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.4363, allocations: 7.984 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.4363, allocations: 0 / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4363, allocations: 0 / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007075/0.437, allocations: 476.6 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.012e-05/0.4371, allocations: 96.86 kB / 1.062 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.674e-05/0.4372, allocations: 8 kB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.4373, allocations: 11.98 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.487e-05/0.4374, allocations: 23.95 kB / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.292e-05/0.4374, allocations: 8 kB / 1.062 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001871/0.4376, allocations: 210 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4376, allocations: 0 / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002921/0.4379, allocations: 59.97 kB / 1.062 GB, free: 14.16 MB / 0.8262 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.00022/0.4381, allocations: 131.2 kB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004661/0.4386, allocations: 287.4 kB / 1.062 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4386, allocations: 4 kB / 1.062 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002253/0.4389, allocations: 183.4 kB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.4392, allocations: 39.5 kB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.4402, allocations: 0.5341 MB / 1.063 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.4406, allocations: 0.7598 MB / 1.064 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.2e-05/0.4406, allocations: 13.55 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.361e-05/0.4407, allocations: 19.44 kB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of SimCode: time 5.41e-07/0.4407, allocations: 3.938 kB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of Templates: time 0.006105/0.4468, allocations: 2.541 MB / 1.066 GB, free: 9.598 MB / 0.8262 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