Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_10_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.008055/0.008055, allocations: 101.8 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.001844/0.001844, allocations: 186.6 kB / 16.67 MB, free: 5.965 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.48/1.48, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.618/2.618, allocations: 437.1 MB / 0.7105 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 59.91 kB / 1.018 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3298, allocations: 151.6 MB / 1.166 GB, free: 7.352 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004015/0.3338, allocations: 1.952 MB / 1.168 GB, free: 5.379 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001617/0.3355, allocations: 0.709 MB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000239/0.3357, allocations: 4 kB / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003126/0.336, allocations: 83.62 kB / 1.169 GB, free: 4.578 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002193/0.3363, allocations: 91.62 kB / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007016/0.337, allocations: 187.1 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000415/0.3374, allocations: 263.5 kB / 1.169 GB, free: 4.051 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001858/0.3376, allocations: 76.62 kB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.3379, allocations: 115.6 kB / 1.17 GB, free: 3.867 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/0.3381, allocations: 151.5 kB / 1.17 GB, free: 3.719 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.014e-05/0.3382, allocations: 20 kB / 1.17 GB, free: 3.699 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001628/0.3383, allocations: 95.86 kB / 1.17 GB, free: 3.605 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.479e-05/0.3384, allocations: 55.83 kB / 1.17 GB, free: 3.551 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.3385, allocations: 107.3 kB / 1.17 GB, free: 3.445 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005117/0.3391, allocations: 307.9 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3391, allocations: 0 / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.973e-06/0.3391, allocations: 4 kB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.361e-05/0.3391, allocations: 0 / 1.17 GB, free: 3.141 MB / 0.92 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.001121/0.3402, allocations: 0.578 MB / 1.171 GB, free: 2.508 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.345e-05/0.3403, allocations: 16.03 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.595e-05/0.3404, allocations: 46.73 kB / 1.171 GB, free: 2.438 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.897e-05/0.3405, allocations: 28.56 kB / 1.171 GB, free: 2.41 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006592/0.3412, allocations: 302.8 kB / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.3412, allocations: 12.38 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.482e-05/0.3412, allocations: 16.38 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004639/0.3417, allocations: 227.6 kB / 1.171 GB, free: 1.805 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.3417, allocations: 0 / 1.171 GB, free: 1.805 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.3418, allocations: 8 kB / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.3418, allocations: 3.938 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002837/0.3421, allocations: 136.3 kB / 1.172 GB, free: 1.66 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.3432, allocations: 0.6807 MB / 1.172 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003976/0.3436, allocations: 170.6 kB / 1.172 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.3438, allocations: 96.83 kB / 1.172 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.3438, allocations: 0 / 1.172 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003158/0.3441, allocations: 169 kB / 1.173 GB, free: 476 kB / 0.92 GB Notification: Performance of pre-optimization done (n=15): time 2.184e-06/0.3442, allocations: 0 / 1.173 GB, free: 476 kB / 0.92 GB Notification: Performance of matching and sorting (n=15): time 0.0007681/0.3449, allocations: 380.2 kB / 1.173 GB, free: 84 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.3451, allocations: 136.5 kB / 1.173 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003197/0.3454, allocations: 278.6 kB / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.3454, allocations: 33.7 kB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.3456, allocations: 160.2 kB / 1.174 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.393e-05/0.3456, allocations: 43.45 kB / 1.174 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.95e-05/0.3457, allocations: 37.72 kB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3459, allocations: 342.8 kB / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.346, allocations: 87.95 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.3462, allocations: 129 kB / 1.174 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003226/0.3466, allocations: 245.3 kB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3466, allocations: 7.875 kB / 1.174 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005125/0.3471, allocations: 334.9 kB / 1.175 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.293e-05/0.3472, allocations: 37.7 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3472, allocations: 96 / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.3472, allocations: 4 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.3473, allocations: 23.98 kB / 1.175 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.3473, allocations: 7.922 kB / 1.175 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.3475, allocations: 23.83 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.3475, allocations: 8 kB / 1.175 GB, free: 14.06 MB / 0.9356 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.000173/0.3477, allocations: 196.3 kB / 1.175 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.3477, allocations: 27.72 kB / 1.175 GB, free: 13.83 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.204e-05/0.3478, allocations: 29.83 kB / 1.175 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3478, allocations: 0 / 1.175 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3478, allocations: 0 / 1.175 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3478, allocations: 0 / 1.175 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.3481, allocations: 301.3 kB / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3481, allocations: 0 / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.3482, allocations: 19.92 kB / 1.175 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.3482, allocations: 4 kB / 1.175 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.3483, allocations: 96 / 1.175 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3483, allocations: 7.938 kB / 1.175 GB, free: 13.42 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3483, allocations: 4 kB / 1.175 GB, free: 13.42 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007346/0.349, allocations: 461.3 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.559e-05/0.3491, allocations: 104.8 kB / 1.176 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.661e-05/0.3492, allocations: 12 kB / 1.176 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.826e-05/0.3493, allocations: 11.98 kB / 1.176 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.88e-05/0.3494, allocations: 31.95 kB / 1.176 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.3494, allocations: 4 kB / 1.176 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002084/0.3496, allocations: 202 kB / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.804e-06/0.3496, allocations: 0 / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003218/0.3499, allocations: 71.89 kB / 1.176 GB, free: 12.5 MB / 0.9356 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.001067/0.351, allocations: 1.024 MB / 1.177 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004514/0.3515, allocations: 291.2 kB / 1.178 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3515, allocations: 0 / 1.178 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.3517, allocations: 183.5 kB / 1.178 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.352, allocations: 36.48 kB / 1.178 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.3555, allocations: 2.788 MB / 1.18 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.3559, allocations: 0.7514 MB / 1.181 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.251e-05/0.356, allocations: 21.53 kB / 1.181 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.3561, allocations: 71.42 kB / 1.181 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of SimCode: time 4.31e-07/0.3561, allocations: 0 / 1.181 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02583/0.3819, allocations: 5.403 MB / 1.187 GB, free: 1.867 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.731/8.113, allocations: 12.02 kB / 1.187 GB, free: 1.855 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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