Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001173/0.001173, allocations: 115.4 kB / 16.42 MB, free: 6.5 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.001206/0.001206, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.394/1.394, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.361/2.361, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 67.88 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.923/0.9243, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.005325/0.9297, allocations: 1.952 MB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001995/0.9317, allocations: 0.7064 MB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.932, allocations: 10.19 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003746/0.9324, allocations: 86.11 kB / 1.091 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003205/0.9327, allocations: 91 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.9338, allocations: 184.9 kB / 1.092 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005924/0.9344, allocations: 263.5 kB / 1.092 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002504/0.9347, allocations: 82.84 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000253/0.9349, allocations: 119 kB / 1.092 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003039/0.9352, allocations: 151 kB / 1.092 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.584e-05/0.9353, allocations: 24 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002683/0.9356, allocations: 92.39 kB / 1.092 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.9357, allocations: 60.16 kB / 1.092 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.9359, allocations: 108.8 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006159/0.9365, allocations: 309.8 kB / 1.093 GB, free: 3 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.9365, allocations: 0 / 1.093 GB, free: 3 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.723e-06/0.9365, allocations: 4.75 kB / 1.093 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.9366, allocations: 0 / 1.093 GB, free: 2.996 MB / 0.8575 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.0011/0.9377, allocations: 0.5773 MB / 1.093 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.9377, allocations: 9.734 kB / 1.093 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.793e-05/0.9378, allocations: 34.59 kB / 1.093 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007233/0.9386, allocations: 303.3 kB / 1.094 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.064e-05/0.9386, allocations: 10.72 kB / 1.094 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.952e-05/0.9387, allocations: 17.72 kB / 1.094 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006266/0.9393, allocations: 233.8 kB / 1.094 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.9394, allocations: 0.8125 kB / 1.094 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.25e-05/0.9394, allocations: 6.062 kB / 1.094 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.9394, allocations: 2.906 kB / 1.094 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004611/0.9399, allocations: 129.1 kB / 1.094 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.9411, allocations: 0.6823 MB / 1.095 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006261/0.9418, allocations: 163.8 kB / 1.095 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.9421, allocations: 98.92 kB / 1.095 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.9421, allocations: 9.688 kB / 1.095 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004146/0.9426, allocations: 165 kB / 1.095 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 2.425e-06/0.9426, allocations: 0.9688 kB / 1.095 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.001164/0.9438, allocations: 373.6 kB / 1.095 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.9438, allocations: 133.7 kB / 1.096 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004298/0.9443, allocations: 287.7 kB / 1.096 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.9443, allocations: 32.83 kB / 1.096 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.9444, allocations: 160 kB / 1.096 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.683e-05/0.9445, allocations: 40.59 kB / 1.096 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.9446, allocations: 41.53 kB / 1.096 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.986e-05/0.9447, allocations: 337.4 kB / 1.096 GB, free: 240 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/0.945, allocations: 87.5 kB / 1.096 GB, free: 216 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003443/0.9454, allocations: 133.6 kB / 1.097 GB, free: 136 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005946/0.946, allocations: 240.2 kB / 1.097 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.946, allocations: 0 / 1.097 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0009425/0.947, allocations: 336 kB / 1.097 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 6e-05/0.9471, allocations: 37.12 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.9471, allocations: 5 kB / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.9471, allocations: 5.062 kB / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.9473, allocations: 26.19 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.9473, allocations: 1.969 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.9476, allocations: 26.36 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/0.9476, allocations: 10.98 kB / 1.097 GB, free: 15.79 MB / 0.8731 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.0002725/0.9479, allocations: 196.4 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.726e-05/0.948, allocations: 25.31 kB / 1.097 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.046e-05/0.9481, allocations: 26.3 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.9481, allocations: 1.172 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.9481, allocations: 1.094 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.9482, allocations: 103.5 kB / 1.098 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.964e-05/0.9483, allocations: 5.438 kB / 1.098 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.9485, allocations: 19.19 kB / 1.098 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.9487, allocations: 23.75 kB / 1.098 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001391/0.9501, allocations: 488.7 kB / 1.098 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001431/0.9515, allocations: 0.6017 MB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003942/0.952, allocations: 129.5 kB / 1.099 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000349/0.9523, allocations: 199.5 kB / 1.099 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of Backend: time 8.61e-07/0.9523, allocations: 64 / 1.099 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001177/0.9535, allocations: 319.9 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of SimCode: time 0.001481/0.955, allocations: 0.9199 MB / 1.1 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of Templates: time 0.01231/0.9674, allocations: 3.059 MB / 1.103 GB, free: 13.47 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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:mot.add.k1,mot.add.k2,mot.delta,mot.int.initType,mot.int.k,mot.int.limitsAtInit,mot.int.outMax,mot.int.outMin,mot.int.strict,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.lowSwi.u3,mot.tClo,mot.tOpe,mot.uppHys.pre_y_start,mot.uppHys.u,mot.uppHys.uHigh,mot.uppHys.uLow,mot.uppHys.y,mot.uppSwi.u1,mot.vClo.k,mot.vClo.y,mot.vOpe.k,mot.vOpe.y,mot.y,mot.y_start,mot.zer.k,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