Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: 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_11_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_11_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.001184/0.001184, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.01011/0.01011, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.566/1.566, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.964/2.964, allocations: 470.6 MB / 0.7442 GB, free: 8.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003671, allocations: 14.27 kB / 0.9123 GB, free: 34.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3625, allocations: 161.4 MB / 1.07 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002763/0.3653, allocations: 1.662 MB / 1.072 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001385/0.3667, allocations: 0.7054 MB / 1.072 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.3668, allocations: 0 / 1.072 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002384/0.3671, allocations: 79.75 kB / 1.072 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001379/0.3672, allocations: 83.69 kB / 1.072 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005323/0.3678, allocations: 157.6 kB / 1.072 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003119/0.3681, allocations: 243.4 kB / 1.073 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/0.3683, allocations: 62.11 kB / 1.073 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001439/0.3684, allocations: 91.61 kB / 1.073 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002305/0.3687, allocations: 131.5 kB / 1.073 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.693e-05/0.3687, allocations: 4 kB / 1.073 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.3689, allocations: 83.91 kB / 1.073 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.754e-05/0.369, allocations: 43.78 kB / 1.073 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001414/0.3691, allocations: 113 kB / 1.073 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003874/0.3695, allocations: 275 kB / 1.073 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3695, allocations: 4 kB / 1.074 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.026e-06/0.3695, allocations: 0 / 1.074 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.982e-06/0.3696, allocations: 0 / 1.074 GB, free: 7.668 MB / 0.8262 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.0009778/0.3705, allocations: 0.5509 MB / 1.074 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.3706, allocations: 12.03 kB / 1.074 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.933e-05/0.3707, allocations: 24.66 kB / 1.074 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.3712, allocations: 310.8 kB / 1.074 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/0.3712, allocations: 12.38 kB / 1.074 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.782e-05/0.3713, allocations: 16.38 kB / 1.074 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004672/0.3718, allocations: 231.2 kB / 1.075 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.3718, allocations: 0 / 1.075 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.477e-05/0.3718, allocations: 8 kB / 1.075 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.3718, allocations: 8 kB / 1.075 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002878/0.3721, allocations: 128.4 kB / 1.075 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.3732, allocations: 0.6925 MB / 1.075 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004271/0.3736, allocations: 186.5 kB / 1.076 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.3738, allocations: 104.8 kB / 1.076 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.3739, allocations: 4 kB / 1.076 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003605/0.3742, allocations: 176.9 kB / 1.076 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.3742, allocations: 0 / 1.076 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0007642/0.375, allocations: 388.3 kB / 1.076 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.3751, allocations: 136.5 kB / 1.076 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.3754, allocations: 274.7 kB / 1.077 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.3755, allocations: 33.69 kB / 1.077 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.3756, allocations: 160.1 kB / 1.077 GB, free: 4 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.507e-05/0.3757, allocations: 39.45 kB / 1.077 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.601e-05/0.3757, allocations: 25.72 kB / 1.077 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3759, allocations: 338.8 kB / 1.077 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.3761, allocations: 91.89 kB / 1.077 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.3764, allocations: 137.1 kB / 1.077 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004145/0.3768, allocations: 248.3 kB / 1.078 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.3768, allocations: 0 / 1.078 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005806/0.3774, allocations: 349.3 kB / 1.078 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.84e-05/0.3774, allocations: 41.69 kB / 1.078 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.3775, allocations: 3.984 kB / 1.078 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.3775, allocations: 4 kB / 1.078 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.3776, allocations: 19.98 kB / 1.078 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.3776, allocations: 8.094 kB / 1.078 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.3778, allocations: 27.83 kB / 1.078 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.3778, allocations: 8 kB / 1.078 GB, free: 2.613 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.0002236/0.3781, allocations: 197.8 kB / 1.078 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/0.3781, allocations: 23.81 kB / 1.078 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.155e-05/0.3782, allocations: 33.77 kB / 1.078 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3782, allocations: 8 kB / 1.078 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3782, allocations: 0 / 1.078 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.3782, allocations: 0 / 1.078 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003291/0.3786, allocations: 293.4 kB / 1.079 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3786, allocations: 0 / 1.079 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.3787, allocations: 15.98 kB / 1.079 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3787, allocations: 4 kB / 1.079 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.3787, allocations: 4 kB / 1.079 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3787, allocations: 4 kB / 1.079 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.3787, allocations: 4 kB / 1.079 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008059/0.3795, allocations: 483.8 kB / 1.079 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.321e-05/0.3796, allocations: 96.92 kB / 1.079 GB, free: 1.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.3797, allocations: 12 kB / 1.079 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.3798, allocations: 15.98 kB / 1.079 GB, free: 1.34 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.66e-05/0.3799, allocations: 23.95 kB / 1.079 GB, free: 1.316 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.143e-05/0.3799, allocations: 4 kB / 1.079 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002143/0.3801, allocations: 205.9 kB / 1.079 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3801, allocations: 0 / 1.079 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002961/0.3804, allocations: 60.06 kB / 1.08 GB, free: 1.051 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.0002531/0.3807, allocations: 140.6 kB / 1.08 GB, free: 0.9062 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005442/0.3813, allocations: 303.2 kB / 1.08 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3813, allocations: 192 / 1.08 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002824/0.3816, allocations: 191.3 kB / 1.08 GB, free: 408 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.3819, allocations: 32.55 kB / 1.08 GB, free: 376 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.3831, allocations: 0.5422 MB / 1.081 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.3835, allocations: 0.7556 MB / 1.081 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.299e-05/0.3836, allocations: 21.55 kB / 1.081 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.3837, allocations: 15.44 kB / 1.081 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of SimCode: time 4e-07/0.3837, allocations: 0 / 1.081 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of Templates: time 0.007043/0.3907, allocations: 2.514 MB / 1.084 GB, free: 12.47 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches