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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: 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_latest_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_latest_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.001382/0.001382, allocations: 107.9 kB / 16.37 MB, free: 6.477 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.001105/0.001105, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.464/1.464, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.601/2.601, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.64 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3666, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004039/0.3707, allocations: 1.962 MB / 1.029 GB, free: 60 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00132/0.372, allocations: 0.7128 MB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.3721, allocations: 7.938 kB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002535/0.3724, allocations: 87.62 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.3725, allocations: 83.58 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006048/0.3732, allocations: 189.1 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003968/0.3736, allocations: 267.5 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.3738, allocations: 69.81 kB / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.3739, allocations: 115.6 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002159/0.3741, allocations: 147.5 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.505e-05/0.3742, allocations: 27.94 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.3743, allocations: 95.92 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.047e-05/0.3744, allocations: 51.84 kB / 1.03 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.3746, allocations: 115.3 kB / 1.031 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005016/0.3751, allocations: 307.1 kB / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3751, allocations: 0 / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3751, allocations: 0 / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.3751, allocations: 0 / 1.031 GB, free: 13.81 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.0009275/0.376, allocations: 0.5858 MB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.3761, allocations: 8.031 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.181e-05/0.3762, allocations: 36.5 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005599/0.3767, allocations: 298.9 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.3768, allocations: 12.38 kB / 1.032 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.318e-05/0.3768, allocations: 16.31 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004158/0.3772, allocations: 224.4 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3773, allocations: 0 / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/0.3773, allocations: 12 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.3773, allocations: 4 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003227/0.3776, allocations: 132.3 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.3787, allocations: 0.6807 MB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003601/0.3791, allocations: 170.5 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.3793, allocations: 96.95 kB / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.3793, allocations: 4 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.3796, allocations: 173.1 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.3796, allocations: 0 / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.0007134/0.3803, allocations: 367 kB / 1.034 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.584e-05/0.3804, allocations: 132.5 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000291/0.3807, allocations: 286.5 kB / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.3808, allocations: 29.7 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3809, allocations: 160.2 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.118e-05/0.3809, allocations: 43.44 kB / 1.034 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/0.381, allocations: 45.61 kB / 1.034 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.3812, allocations: 342.8 kB / 1.035 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.3814, allocations: 87.89 kB / 1.035 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.3815, allocations: 133.1 kB / 1.035 GB, free: 9.488 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.3819, allocations: 236.4 kB / 1.035 GB, free: 9.234 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3819, allocations: 0 / 1.035 GB, free: 9.234 MB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005711/0.3825, allocations: 339 kB / 1.035 GB, free: 8.891 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.049e-05/0.3825, allocations: 40.97 kB / 1.035 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3825, allocations: 0 / 1.035 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.3826, allocations: 3.938 kB / 1.035 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.3827, allocations: 27.92 kB / 1.035 GB, free: 8.816 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.3827, allocations: 0 / 1.035 GB, free: 8.816 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.3828, allocations: 27.83 kB / 1.035 GB, free: 8.789 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.3829, allocations: 4 kB / 1.035 GB, free: 8.785 MB / 0.8106 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.0002894/0.3832, allocations: 199.5 kB / 1.036 GB, free: 8.574 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.235e-05/0.3832, allocations: 23.72 kB / 1.036 GB, free: 8.551 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.005e-05/0.3833, allocations: 33.83 kB / 1.036 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3833, allocations: 96 / 1.036 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.3833, allocations: 3.938 kB / 1.036 GB, free: 8.516 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3833, allocations: 0 / 1.036 GB, free: 8.516 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003775/0.3837, allocations: 297.3 kB / 1.036 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3837, allocations: 0 / 1.036 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.3838, allocations: 15.98 kB / 1.036 GB, free: 8.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3839, allocations: 8 kB / 1.036 GB, free: 8.152 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.3839, allocations: 4 kB / 1.036 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.3839, allocations: 4 kB / 1.036 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3839, allocations: 0 / 1.036 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007135/0.3846, allocations: 469.3 kB / 1.036 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/0.3848, allocations: 96.86 kB / 1.037 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.629e-05/0.3849, allocations: 16.06 kB / 1.037 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.385, allocations: 15.98 kB / 1.037 GB, free: 7.52 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.857e-05/0.3851, allocations: 23.95 kB / 1.037 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.3851, allocations: 4 kB / 1.037 GB, free: 7.492 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002126/0.3854, allocations: 202 kB / 1.037 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3854, allocations: 0 / 1.037 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003015/0.3857, allocations: 63.97 kB / 1.037 GB, free: 7.234 MB / 0.8106 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.0002207/0.3859, allocations: 138.5 kB / 1.037 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004803/0.3864, allocations: 291.2 kB / 1.037 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3864, allocations: 3.938 kB / 1.037 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.3866, allocations: 183.4 kB / 1.037 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003067/0.387, allocations: 38.28 kB / 1.037 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.3881, allocations: 477.3 kB / 1.038 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004462/0.3885, allocations: 0.7514 MB / 1.039 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.71e-05/0.3886, allocations: 21.55 kB / 1.039 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.906e-05/0.3887, allocations: 19.42 kB / 1.039 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.3887, allocations: 288 / 1.039 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of Templates: time 0.007044/0.3957, allocations: 2.823 MB / 1.041 GB, free: 2.453 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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 & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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