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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008056/0.008056, allocations: 98.69 kB / 15.73 MB, free: 5.547 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.001721/0.001721, allocations: 192 kB / 16.67 MB, free: 5.492 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.614/2.614, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 59.91 kB / 1.054 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3401, allocations: 157.4 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003549/0.3437, allocations: 1.944 MB / 1.209 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001401/0.3451, allocations: 0.7012 MB / 1.21 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002048/0.3454, allocations: 4 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002919/0.3457, allocations: 87.62 kB / 1.21 GB, free: 7.41 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.3459, allocations: 91.58 kB / 1.21 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006917/0.3466, allocations: 189.2 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003987/0.3471, allocations: 267.4 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.3473, allocations: 72.64 kB / 1.211 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.3475, allocations: 111.7 kB / 1.211 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002423/0.3477, allocations: 155.5 kB / 1.211 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.432e-05/0.3478, allocations: 20 kB / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.3479, allocations: 99.92 kB / 1.211 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.312e-05/0.348, allocations: 51.78 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.3481, allocations: 115.3 kB / 1.211 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004195/0.3486, allocations: 307 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3486, allocations: 0 / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3486, allocations: 0 / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.385e-05/0.3486, allocations: 0 / 1.211 GB, free: 5.965 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.0009832/0.3496, allocations: 0.5858 MB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3496, allocations: 8.625 kB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.193e-05/0.3497, allocations: 50.73 kB / 1.212 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.742e-05/0.3498, allocations: 36.56 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005271/0.3503, allocations: 298.8 kB / 1.212 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.3504, allocations: 12.38 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.3504, allocations: 16.38 kB / 1.212 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004117/0.3508, allocations: 231.6 kB / 1.213 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.3509, allocations: 0 / 1.213 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.3509, allocations: 8 kB / 1.213 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.3509, allocations: 4 kB / 1.213 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002505/0.3512, allocations: 128.3 kB / 1.213 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008895/0.352, allocations: 0.6847 MB / 1.213 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.3524, allocations: 170.4 kB / 1.214 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.3526, allocations: 101 kB / 1.214 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.3526, allocations: 0 / 1.214 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002839/0.3529, allocations: 169.1 kB / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.3529, allocations: 0 / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15): time 0.0006615/0.3536, allocations: 374.9 kB / 1.214 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.217e-05/0.3537, allocations: 136.5 kB / 1.214 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/0.3539, allocations: 278.6 kB / 1.215 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.354, allocations: 33.7 kB / 1.215 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.998e-05/0.3541, allocations: 156.2 kB / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.054e-05/0.3541, allocations: 43.44 kB / 1.215 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.801e-05/0.3542, allocations: 41.7 kB / 1.215 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.3543, allocations: 342.8 kB / 1.215 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.3545, allocations: 87.95 kB / 1.215 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.3547, allocations: 131.1 kB / 1.215 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.355, allocations: 252.4 kB / 1.216 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.355, allocations: 0 / 1.216 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004816/0.3555, allocations: 324.5 kB / 1.216 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.45e-05/0.3556, allocations: 41.69 kB / 1.216 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3556, allocations: 0 / 1.216 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.3556, allocations: 8.094 kB / 1.216 GB, free: 0.9414 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.3558, allocations: 23.92 kB / 1.216 GB, free: 0.918 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.3558, allocations: 7.984 kB / 1.216 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.3559, allocations: 23.73 kB / 1.216 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.3559, allocations: 15.94 kB / 1.216 GB, free: 0.8711 MB / 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.0001678/0.3561, allocations: 191.4 kB / 1.216 GB, free: 0.668 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.954e-05/0.3562, allocations: 27.72 kB / 1.216 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.624e-05/0.3562, allocations: 33.83 kB / 1.216 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3562, allocations: 0 / 1.216 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3562, allocations: 0 / 1.216 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.3562, allocations: 4 kB / 1.216 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.3565, allocations: 289.4 kB / 1.217 GB, free: 276 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3565, allocations: 0 / 1.217 GB, free: 276 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.3566, allocations: 19.92 kB / 1.217 GB, free: 256 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.3566, allocations: 0 / 1.217 GB, free: 256 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.3566, allocations: 8 kB / 1.217 GB, free: 248 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3567, allocations: 0 / 1.217 GB, free: 248 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3567, allocations: 0 / 1.217 GB, free: 248 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006852/0.3573, allocations: 489.3 kB / 1.217 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.356e-05/0.3574, allocations: 96.8 kB / 1.217 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.192e-05/0.3575, allocations: 8 kB / 1.217 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.3576, allocations: 11.98 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.725e-05/0.3577, allocations: 23.97 kB / 1.217 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.3577, allocations: 16.05 kB / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000171/0.3579, allocations: 198 kB / 1.217 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3579, allocations: 0 / 1.217 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002785/0.3582, allocations: 60.06 kB / 1.217 GB, free: 15.32 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.001027/0.3592, allocations: 1.026 MB / 1.218 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000468/0.3597, allocations: 287.2 kB / 1.219 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3597, allocations: 0 / 1.219 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002236/0.3599, allocations: 191.3 kB / 1.219 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.3602, allocations: 32.8 kB / 1.219 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003488/0.3637, allocations: 2.773 MB / 1.222 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.3641, allocations: 0.7514 MB / 1.222 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.508e-05/0.3641, allocations: 17.55 kB / 1.222 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.3643, allocations: 75.41 kB / 1.222 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of SimCode: time 7.61e-07/0.3643, allocations: 0 / 1.222 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02692/0.3912, allocations: 5.494 MB / 1.228 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.471/7.862, allocations: 14.12 kB / 1.228 GB, free: 4.598 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mot.y,mot.uppHys.y,mot.delta,ySet.y,mot.lowHys.u,mot.lowHys.y,mot.uppHys.u Variables in the result:der(mot.int.y),mot.delta,mot.int.initType,mot.int.k,mot.int.limitsAtInit,mot.int.outMax,mot.int.outMin,mot.int.strict,mot.int.u,mot.int.use_reset,mot.int.use_set,mot.int.y,mot.int.y_start,mot.lowHys.pre_y_start,mot.lowHys.u,mot.lowHys.uHigh,mot.lowHys.uLow,mot.lowHys.y,mot.tClo,mot.tOpe,mot.u,mot.uppHys.pre_y_start,mot.uppHys.u,mot.uppHys.uHigh,mot.uppHys.uLow,mot.uppHys.y,mot.uppSwi.u1,mot.uppSwi.u2,mot.uppSwi.u3,mot.uppSwi.y,mot.y,mot.y_start,time,ySet.offset,ySet.shiftTime,ySet.startTime,ySet.table[1,1],ySet.table[1,2],ySet.table[10,1],ySet.table[10,2],ySet.table[11,1],ySet.table[11,2],ySet.table[12,1],ySet.table[12,2],ySet.table[13,1],ySet.table[13,2],ySet.table[2,1],ySet.table[2,2],ySet.table[3,1],ySet.table[3,2],ySet.table[4,1],ySet.table[4,2],ySet.table[5,1],ySet.table[5,2],ySet.table[6,1],ySet.table[6,2],ySet.table[7,1],ySet.table[7,2],ySet.table[8,1],ySet.table[8,2],ySet.table[9,1],ySet.table[9,2],ySet.timeScale,ySet.y