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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_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.008123/0.008123, allocations: 102.1 kB / 15.73 MB, free: 5.988 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.002053/0.002053, allocations: 195.4 kB / 16.67 MB, free: 5.926 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.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.484/2.484, allocations: 390.3 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 63 kB / 0.9504 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2884, allocations: 140.4 MB / 1.087 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003303/0.2917, allocations: 1.957 MB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001446/0.2932, allocations: 0.709 MB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.2935, allocations: 4 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003057/0.2938, allocations: 79.64 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.294, allocations: 91.58 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007147/0.2947, allocations: 187.4 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003994/0.2951, allocations: 271.4 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.2953, allocations: 80.42 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/0.2956, allocations: 115.7 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002378/0.2958, allocations: 151.5 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.393e-05/0.2958, allocations: 20 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.296, allocations: 91.94 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.759e-05/0.2961, allocations: 67.75 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.2963, allocations: 99.41 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004455/0.2967, allocations: 311.8 kB / 1.092 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2967, allocations: 0 / 1.092 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.134e-06/0.2968, allocations: 0 / 1.092 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.2968, allocations: 4 kB / 1.092 GB, free: 13.79 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.0009212/0.2977, allocations: 0.578 MB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.2978, allocations: 8.031 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.728e-05/0.2978, allocations: 50.73 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.637e-05/0.2979, allocations: 28.56 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005208/0.2984, allocations: 302.9 kB / 1.093 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.2984, allocations: 16.38 kB / 1.093 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.883e-05/0.2985, allocations: 12.38 kB / 1.093 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003896/0.2989, allocations: 227.6 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.2989, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.2989, allocations: 4 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.2989, allocations: 8 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002466/0.2992, allocations: 136.3 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008809/0.3001, allocations: 0.6768 MB / 1.094 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.3005, allocations: 170.5 kB / 1.094 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.3006, allocations: 105 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.3007, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/0.3009, allocations: 181 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.301, allocations: 0 / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0006617/0.3016, allocations: 373.2 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.79e-05/0.3017, allocations: 132.5 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.302, allocations: 282.6 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.302, allocations: 29.7 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.3021, allocations: 152.3 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.041e-05/0.3022, allocations: 47.36 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-05/0.3022, allocations: 41.7 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3024, allocations: 342.8 kB / 1.095 GB, free: 9.656 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.3025, allocations: 87.89 kB / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.3027, allocations: 129.1 kB / 1.096 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003117/0.3031, allocations: 240.1 kB / 1.096 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3031, allocations: 0 / 1.096 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004954/0.3036, allocations: 342.9 kB / 1.096 GB, free: 8.82 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.427e-05/0.3036, allocations: 37.69 kB / 1.096 GB, free: 8.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3036, allocations: 3.984 kB / 1.096 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.3037, allocations: 0 / 1.096 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.3038, allocations: 27.92 kB / 1.096 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.3038, allocations: 0 / 1.096 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.3039, allocations: 31.83 kB / 1.096 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.304, allocations: 4 kB / 1.096 GB, free: 8.711 MB / 0.8575 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.0001771/0.3042, allocations: 195.5 kB / 1.096 GB, free: 8.504 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.3042, allocations: 23.72 kB / 1.096 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.373e-05/0.3043, allocations: 29.84 kB / 1.096 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3043, allocations: 0 / 1.096 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.3043, allocations: 3.984 kB / 1.096 GB, free: 8.449 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3043, allocations: 0 / 1.096 GB, free: 8.449 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002506/0.3045, allocations: 301.2 kB / 1.097 GB, free: 8.105 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.3046, allocations: 0 / 1.097 GB, free: 8.105 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.3047, allocations: 19.92 kB / 1.097 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3047, allocations: 4 kB / 1.097 GB, free: 8.082 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.3047, allocations: 11.98 kB / 1.097 GB, free: 8.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3047, allocations: 0 / 1.097 GB, free: 8.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3047, allocations: 4 kB / 1.097 GB, free: 8.066 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006773/0.3054, allocations: 458.3 kB / 1.097 GB, free: 7.594 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.145e-05/0.3055, allocations: 104.8 kB / 1.097 GB, free: 7.473 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.064e-05/0.3055, allocations: 12.06 kB / 1.097 GB, free: 7.461 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.3056, allocations: 15.98 kB / 1.097 GB, free: 7.445 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.383e-05/0.3057, allocations: 19.97 kB / 1.097 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.3057, allocations: 4.188 kB / 1.097 GB, free: 7.422 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001806/0.3059, allocations: 205.9 kB / 1.098 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3059, allocations: 3.938 kB / 1.098 GB, free: 7.219 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002866/0.3062, allocations: 59.84 kB / 1.098 GB, free: 7.16 MB / 0.8575 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.001061/0.3073, allocations: 1.031 MB / 1.099 GB, free: 6.098 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004501/0.3078, allocations: 291.5 kB / 1.099 GB, free: 5.801 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3078, allocations: 4 kB / 1.099 GB, free: 5.797 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.308, allocations: 183.3 kB / 1.099 GB, free: 5.605 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.3083, allocations: 30.42 kB / 1.099 GB, free: 5.578 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/0.3117, allocations: 2.778 MB / 1.102 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.312, allocations: 0.7475 MB / 1.103 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.958e-05/0.3121, allocations: 21.55 kB / 1.103 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.3122, allocations: 71.41 kB / 1.103 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of SimCode: time 3.01e-07/0.3122, allocations: 0 / 1.103 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.3352, allocations: 5.401 MB / 1.108 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/8.235, allocations: 17.56 kB / 1.108 GB, free: 12.52 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > 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: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