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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001046/0.001046, allocations: 90.75 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.001527/0.001527, 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.522/1.522, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.891/2.891, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004122/0.0004124, allocations: 11.38 kB / 0.9021 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.402/0.4024, allocations: 159.6 MB / 1.058 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002856/0.4053, allocations: 1.622 MB / 1.06 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001491/0.4069, allocations: 0.6548 MB / 1.06 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.4071, allocations: 11.94 kB / 1.06 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.4073, allocations: 71.77 kB / 1.06 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002305/0.4076, allocations: 71.77 kB / 1.06 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006086/0.4082, allocations: 137.6 kB / 1.061 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002966/0.4085, allocations: 223.4 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.4087, allocations: 57.58 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.4088, allocations: 87.69 kB / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001727/0.409, allocations: 111.6 kB / 1.061 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.829e-05/0.409, allocations: 8 kB / 1.061 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001452/0.4092, allocations: 71.88 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.842e-05/0.4093, allocations: 43.83 kB / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.378e-05/0.4093, allocations: 57.58 kB / 1.061 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002802/0.4096, allocations: 219.8 kB / 1.061 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4096, allocations: 4 kB / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.204e-06/0.4097, allocations: 0 / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.4097, allocations: 0 / 1.061 GB, free: 1.871 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.0009037/0.4106, allocations: 0.5468 MB / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.4106, allocations: 8.031 kB / 1.062 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.924e-05/0.4107, allocations: 27.72 kB / 1.062 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/0.4112, allocations: 297.5 kB / 1.062 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.4112, allocations: 23.95 kB / 1.062 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.25e-05/0.4112, allocations: 12 kB / 1.062 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003984/0.4116, allocations: 227.1 kB / 1.062 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.4117, allocations: 3.938 kB / 1.062 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.4117, allocations: 4 kB / 1.062 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.4117, allocations: 8 kB / 1.062 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002478/0.412, allocations: 132.3 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000932/0.4129, allocations: 0.6886 MB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000374/0.4133, allocations: 178.5 kB / 1.063 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.4135, allocations: 108.8 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.4135, allocations: 3.984 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003181/0.4138, allocations: 173 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.4138, allocations: 0 / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006986/0.4145, allocations: 392.8 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.4147, allocations: 140.5 kB / 1.064 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.4149, allocations: 270.7 kB / 1.064 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.415, allocations: 33.7 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.4152, allocations: 160.2 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.658e-05/0.4152, allocations: 43.39 kB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.157e-05/0.4152, allocations: 4 kB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002106/0.4155, allocations: 338.8 kB / 1.065 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.4156, allocations: 92.14 kB / 1.065 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002405/0.4159, allocations: 129.4 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001852/0.4161, allocations: 123.7 kB / 1.065 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4161, allocations: 0 / 1.065 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005247/0.4166, allocations: 347 kB / 1.066 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.593e-05/0.4167, allocations: 41.64 kB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.4167, allocations: 0 / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.4167, allocations: 0 / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.4168, allocations: 27.92 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.4169, allocations: 4 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.417, allocations: 35.83 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.836e-05/0.417, allocations: 8 kB / 1.066 GB, free: 13 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 ($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.0001751/0.4172, allocations: 185.3 kB / 1.066 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.505e-05/0.4172, allocations: 31.7 kB / 1.066 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.666e-05/0.4173, allocations: 29.8 kB / 1.066 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.4173, allocations: 0 / 1.066 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4173, allocations: 4 kB / 1.066 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.4173, allocations: 3.984 kB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003444/0.4177, allocations: 289.5 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.4177, allocations: 3.984 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.4178, allocations: 12.09 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.4178, allocations: 7.938 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.4178, allocations: 7.984 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.4178, allocations: 7.953 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4179, allocations: 0 / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007403/0.4186, allocations: 480.7 kB / 1.067 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.289e-05/0.4187, allocations: 96.84 kB / 1.067 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.377e-05/0.4187, allocations: 8 kB / 1.067 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.4189, allocations: 24.05 kB / 1.067 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.137e-05/0.4189, allocations: 27.91 kB / 1.067 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.419, allocations: 8 kB / 1.067 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001896/0.4192, allocations: 197.9 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4192, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002852/0.4195, allocations: 55.94 kB / 1.067 GB, free: 11.45 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 (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.0002162/0.4197, allocations: 128.9 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005061/0.4202, allocations: 307.2 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4202, allocations: 0 / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.4205, allocations: 187.3 kB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003277/0.4208, allocations: 32.73 kB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.4219, allocations: 0.5223 MB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.4224, allocations: 0.748 MB / 1.069 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001037/0.4225, allocations: 21.55 kB / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.303e-05/0.4225, allocations: 15.44 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of SimCode: time 6.11e-07/0.4225, allocations: 0 / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of Templates: time 0.006304/0.4288, allocations: 2.472 MB / 1.072 GB, free: 6.961 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