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.001381/0.001381, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.63/2.63, allocations: 461.9 MB / 0.7346 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 64.36 kB / 0.8992 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2587, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003221/0.262, allocations: 1.954 MB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.2632, allocations: 0.721 MB / 1.056 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.2634, allocations: 4 kB / 1.056 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002103/0.2636, allocations: 79.64 kB / 1.056 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001295/0.2637, allocations: 95.56 kB / 1.056 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005666/0.2643, allocations: 183.6 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002941/0.2646, allocations: 263.4 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.2648, allocations: 70.11 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.2649, allocations: 123.6 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.2651, allocations: 147.5 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.2652, allocations: 20 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.2653, allocations: 87.94 kB / 1.057 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.787e-05/0.2654, allocations: 63.75 kB / 1.057 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.2655, allocations: 107.4 kB / 1.057 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003285/0.2659, allocations: 307 kB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2659, allocations: 0 / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2659, allocations: 0 / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.2659, allocations: 4 kB / 1.057 GB, free: 4.086 MB / 0.8106 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.0008192/0.2667, allocations: 0.5663 MB / 1.058 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.2668, allocations: 12.62 kB / 1.058 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.959e-05/0.2668, allocations: 46.73 kB / 1.058 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.195e-05/0.2669, allocations: 32.56 kB / 1.058 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004241/0.2673, allocations: 298.9 kB / 1.058 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.2674, allocations: 12.38 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.2674, allocations: 12.38 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.2678, allocations: 227.1 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.2678, allocations: 4 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.2678, allocations: 4 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.2679, allocations: 4 kB / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000256/0.2681, allocations: 128.3 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008107/0.2689, allocations: 0.6962 MB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.2693, allocations: 166.7 kB / 1.059 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.2695, allocations: 96.86 kB / 1.059 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.853e-05/0.2695, allocations: 7.984 kB / 1.059 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.2698, allocations: 169 kB / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.2698, allocations: 0 / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.000666/0.2705, allocations: 372.8 kB / 1.06 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.488e-05/0.2706, allocations: 136.5 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.2708, allocations: 282.5 kB / 1.06 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.2709, allocations: 33.8 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.271, allocations: 160.2 kB / 1.06 GB, free: 400 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.271, allocations: 39.45 kB / 1.06 GB, free: 360 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.097e-05/0.2711, allocations: 41.62 kB / 1.06 GB, free: 312 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.2712, allocations: 350.7 kB / 1.061 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.2714, allocations: 79.97 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.2716, allocations: 131 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003304/0.272, allocations: 243.8 kB / 1.061 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.272, allocations: 4 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005008/0.2725, allocations: 336.9 kB / 1.062 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.484e-05/0.2725, allocations: 37.7 kB / 1.062 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2725, allocations: 0 / 1.062 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.2726, allocations: 96 / 1.062 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.2727, allocations: 31.98 kB / 1.062 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.2727, allocations: 0 / 1.062 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/0.2728, allocations: 27.83 kB / 1.062 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.2729, allocations: 7.938 kB / 1.062 GB, free: 15.02 MB / 0.8262 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.0001664/0.273, allocations: 199.4 kB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.771e-05/0.2731, allocations: 23.72 kB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.255e-05/0.2731, allocations: 37.83 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2731, allocations: 0 / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2731, allocations: 0 / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2731, allocations: 0 / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002354/0.2734, allocations: 297.3 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2734, allocations: 0 / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.935e-05/0.2735, allocations: 15.98 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2735, allocations: 4 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.2735, allocations: 0 / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2735, allocations: 4 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2735, allocations: 0 / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006941/0.2742, allocations: 472.7 kB / 1.063 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/0.2743, allocations: 100.8 kB / 1.063 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.2744, allocations: 8 kB / 1.063 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.2745, allocations: 11.98 kB / 1.063 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.633e-05/0.2746, allocations: 23.95 kB / 1.063 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.2746, allocations: 16.06 kB / 1.063 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001793/0.2748, allocations: 201.9 kB / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2748, allocations: 4 kB / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000272/0.2751, allocations: 51.84 kB / 1.063 GB, free: 13.47 MB / 0.8262 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.001015/0.2761, allocations: 1.031 MB / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004609/0.2765, allocations: 303.1 kB / 1.064 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2766, allocations: 0 / 1.064 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002268/0.2768, allocations: 179.4 kB / 1.064 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.2771, allocations: 36.73 kB / 1.065 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003313/0.2804, allocations: 2.771 MB / 1.067 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.2807, allocations: 0.7475 MB / 1.068 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.32e-05/0.2808, allocations: 21.53 kB / 1.068 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.747e-05/0.2809, allocations: 71.42 kB / 1.068 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2809, allocations: 0 / 1.068 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.3031, allocations: 5.339 MB / 1.073 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.513/8.816, allocations: 9.75 kB / 1.073 GB, free: 2.891 MB / 0.8262 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) Reference file matches