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.006714/0.006714, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001247/0.001248, allocations: 188.9 kB / 16.67 MB, free: 5.969 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.456/1.456, allocations: 222.9 MB / 240.4 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.705/2.705, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 63.91 kB / 1.054 GB, free: 7.715 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3232, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003414/0.3266, allocations: 1.952 MB / 1.209 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001371/0.328, allocations: 0.6973 MB / 1.21 GB, free: 7.531 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/0.3282, allocations: 7.938 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002504/0.3285, allocations: 87.62 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001856/0.3287, allocations: 91.62 kB / 1.21 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006827/0.3294, allocations: 186.3 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004022/0.3298, allocations: 259.5 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001856/0.33, allocations: 74.09 kB / 1.211 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001964/0.3302, allocations: 127.6 kB / 1.211 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.3305, allocations: 143.5 kB / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.495e-05/0.3305, allocations: 20 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.3307, allocations: 99.86 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.982e-05/0.3308, allocations: 59.78 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.3309, allocations: 103.4 kB / 1.211 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004485/0.3314, allocations: 307 kB / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3314, allocations: 0 / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.884e-06/0.3314, allocations: 0 / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.194e-05/0.3314, allocations: 4 kB / 1.211 GB, free: 5.996 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.00095/0.3324, allocations: 0.5897 MB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.3324, allocations: 8.625 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.555e-05/0.3325, allocations: 54.67 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.447e-05/0.3326, allocations: 28.56 kB / 1.212 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005483/0.3331, allocations: 302.8 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.3332, allocations: 12.38 kB / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.575e-05/0.3332, allocations: 12.38 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000436/0.3336, allocations: 235.6 kB / 1.213 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3337, allocations: 0 / 1.213 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.3337, allocations: 4 kB / 1.213 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3337, allocations: 4 kB / 1.213 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/0.3339, allocations: 132.3 kB / 1.213 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008741/0.3348, allocations: 0.6886 MB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003397/0.3352, allocations: 162.6 kB / 1.214 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.3354, allocations: 104.8 kB / 1.214 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.3354, allocations: 3.938 kB / 1.214 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.3357, allocations: 165 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.3357, allocations: 0 / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15): time 0.0006668/0.3363, allocations: 376.3 kB / 1.214 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.639e-05/0.3364, allocations: 140.5 kB / 1.214 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.3367, allocations: 278.7 kB / 1.215 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.3367, allocations: 33.69 kB / 1.215 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.3369, allocations: 156.2 kB / 1.215 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.21e-05/0.3369, allocations: 43.44 kB / 1.215 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.372e-05/0.337, allocations: 41.7 kB / 1.215 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3371, allocations: 342.8 kB / 1.215 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.3373, allocations: 75.97 kB / 1.215 GB, free: 1.773 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.3375, allocations: 141 kB / 1.215 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.3378, allocations: 241 kB / 1.216 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3378, allocations: 0 / 1.216 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004614/0.3382, allocations: 334.9 kB / 1.216 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.765e-05/0.3383, allocations: 33.7 kB / 1.216 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3383, allocations: 4 kB / 1.216 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.3383, allocations: 0 / 1.216 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.3385, allocations: 23.98 kB / 1.216 GB, free: 0.9531 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.3385, allocations: 3.938 kB / 1.216 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.3386, allocations: 35.83 kB / 1.216 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.3386, allocations: 4 kB / 1.216 GB, free: 0.9102 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.0001636/0.3388, allocations: 195.4 kB / 1.216 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.051e-05/0.3388, allocations: 23.72 kB / 1.216 GB, free: 0.6797 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.863e-05/0.3389, allocations: 29.92 kB / 1.216 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.3389, allocations: 7.938 kB / 1.216 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3389, allocations: 0 / 1.216 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3389, allocations: 4 kB / 1.216 GB, free: 0.6367 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.3392, allocations: 297.3 kB / 1.217 GB, free: 304 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.3392, allocations: 0 / 1.217 GB, free: 304 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.3393, allocations: 19.92 kB / 1.217 GB, free: 284 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3393, allocations: 0 / 1.217 GB, free: 284 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.3393, allocations: 8 kB / 1.217 GB, free: 276 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3393, allocations: 0 / 1.217 GB, free: 276 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.3394, allocations: 3.984 kB / 1.217 GB, free: 272 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006724/0.34, allocations: 468.2 kB / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.664e-05/0.3401, allocations: 100.8 kB / 1.217 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.629e-05/0.3402, allocations: 11.98 kB / 1.217 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.3403, allocations: 16 kB / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.502e-05/0.3404, allocations: 27.89 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.3404, allocations: 4 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001723/0.3406, allocations: 205.9 kB / 1.217 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3406, allocations: 4.062 kB / 1.217 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002885/0.3409, allocations: 60.06 kB / 1.217 GB, free: 15.35 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.0009924/0.3419, allocations: 1.022 MB / 1.218 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005016/0.3424, allocations: 291.2 kB / 1.219 GB, free: 14 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.3424, allocations: 4 kB / 1.219 GB, free: 14 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002184/0.3426, allocations: 179.4 kB / 1.219 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.3429, allocations: 36.47 kB / 1.219 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003462/0.3464, allocations: 2.766 MB / 1.222 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.3467, allocations: 0.7592 MB / 1.222 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.391e-05/0.3468, allocations: 17.48 kB / 1.222 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.3469, allocations: 75.41 kB / 1.222 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of SimCode: time 8.41e-07/0.347, allocations: 4 kB / 1.222 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02662/0.3736, allocations: 5.487 MB / 1.228 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.384/7.757, allocations: 15.8 kB / 1.228 GB, free: 4.633 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