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.0009539/0.0009537, allocations: 98.88 kB / 16.02 MB, free: 76 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.0009683/0.0009683, allocations: 185.4 kB / 16.92 MB, free: 6.703 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.397/1.397, allocations: 223.3 MB / 241 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.829/2.829, allocations: 462.6 MB / 0.737 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000368/0.0003681, allocations: 13.28 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3518, allocations: 159.6 MB / 1.059 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002281/0.3541, allocations: 1.656 MB / 1.061 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001414/0.3556, allocations: 0.7168 MB / 1.062 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.3558, allocations: 4 kB / 1.062 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002483/0.356, allocations: 75.75 kB / 1.062 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.3562, allocations: 79.69 kB / 1.062 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006082/0.3568, allocations: 155.8 kB / 1.062 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.3572, allocations: 243.4 kB / 1.062 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001806/0.3574, allocations: 66.11 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.3576, allocations: 91.61 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.3578, allocations: 131.5 kB / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.3578, allocations: 8 kB / 1.062 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001576/0.358, allocations: 83.92 kB / 1.063 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.111e-05/0.3581, allocations: 43.78 kB / 1.063 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.3582, allocations: 105.1 kB / 1.063 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002732/0.3585, allocations: 215.5 kB / 1.063 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3585, allocations: 3.938 kB / 1.063 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3585, allocations: 0 / 1.063 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.3585, allocations: 0 / 1.063 GB, free: 1.344 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.0008121/0.3593, allocations: 0.5509 MB / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.3594, allocations: 11.97 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.671e-05/0.3594, allocations: 28.66 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.3599, allocations: 306.8 kB / 1.064 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.3599, allocations: 12.38 kB / 1.064 GB, free: 360 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.65e-05/0.36, allocations: 12.38 kB / 1.064 GB, free: 348 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/0.3604, allocations: 235.2 kB / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3604, allocations: 3.938 kB / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.3604, allocations: 11.98 kB / 1.064 GB, free: 72 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.3604, allocations: 0 / 1.064 GB, free: 72 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002606/0.3607, allocations: 132.4 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007966/0.3615, allocations: 0.6886 MB / 1.065 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000363/0.3619, allocations: 178.5 kB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.3621, allocations: 109 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.3621, allocations: 96 / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003225/0.3624, allocations: 177 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.3624, allocations: 0 / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0007106/0.3631, allocations: 393.1 kB / 1.066 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/0.3632, allocations: 132.5 kB / 1.066 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.3635, allocations: 282.7 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.3635, allocations: 25.7 kB / 1.066 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.3636, allocations: 168.1 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.927e-05/0.3637, allocations: 39.39 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.313e-05/0.3637, allocations: 29.7 kB / 1.066 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.3638, allocations: 338.8 kB / 1.067 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.364, allocations: 91.89 kB / 1.067 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.3642, allocations: 133.1 kB / 1.067 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003368/0.3646, allocations: 247.8 kB / 1.067 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3646, allocations: 0 / 1.067 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005166/0.3651, allocations: 348.7 kB / 1.067 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.3652, allocations: 37.69 kB / 1.067 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.3652, allocations: 12.03 kB / 1.067 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.3652, allocations: 0 / 1.067 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.3653, allocations: 23.98 kB / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.3653, allocations: 4 kB / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.3655, allocations: 27.83 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.3655, allocations: 8 kB / 1.067 GB, free: 12.29 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.000172/0.3657, allocations: 199.4 kB / 1.068 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.838e-05/0.3657, allocations: 27.72 kB / 1.068 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.57e-05/0.3658, allocations: 29.83 kB / 1.068 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.3658, allocations: 0 / 1.068 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3658, allocations: 0 / 1.068 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3658, allocations: 0 / 1.068 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002443/0.3661, allocations: 293.4 kB / 1.068 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.3661, allocations: 96 / 1.068 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.3662, allocations: 19.94 kB / 1.068 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3662, allocations: 0 / 1.068 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.3662, allocations: 11.98 kB / 1.068 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3662, allocations: 0 / 1.068 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3662, allocations: 0 / 1.068 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007273/0.367, allocations: 486.1 kB / 1.069 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.064e-05/0.367, allocations: 96.84 kB / 1.069 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/0.3671, allocations: 11.94 kB / 1.069 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.3672, allocations: 15.98 kB / 1.069 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.211e-05/0.3673, allocations: 27.95 kB / 1.069 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.3673, allocations: 4 kB / 1.069 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001737/0.3675, allocations: 206 kB / 1.069 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3675, allocations: 0 / 1.069 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002925/0.3678, allocations: 60.06 kB / 1.069 GB, free: 10.72 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.0002155/0.368, allocations: 137.1 kB / 1.069 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004882/0.3685, allocations: 303.2 kB / 1.069 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3685, allocations: 4 kB / 1.069 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.3688, allocations: 179.4 kB / 1.07 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.3691, allocations: 32.55 kB / 1.07 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.3702, allocations: 0.5708 MB / 1.07 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.3705, allocations: 0.7556 MB / 1.071 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.196e-05/0.3706, allocations: 15.44 kB / 1.071 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of SimCode: time 6.11e-07/0.3706, allocations: 0 / 1.071 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of Templates: time 0.005761/0.3763, allocations: 2.967 MB / 1.074 GB, free: 5.695 MB / 0.8262 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 -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