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: 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.01055/0.01055, allocations: 99.84 kB / 15.73 MB, free: 6.043 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.002388/0.002388, allocations: 188.3 kB / 16.67 MB, free: 5.973 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.806/2.806, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 68.11 kB / 1.054 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4138, allocations: 157.4 MB / 1.208 GB, free: 9.688 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004135/0.4179, allocations: 1.958 MB / 1.21 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001619/0.4196, allocations: 0.7011 MB / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/0.4199, allocations: 8 kB / 1.21 GB, free: 7 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00031/0.4202, allocations: 87.62 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.4204, allocations: 91.56 kB / 1.21 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007757/0.4212, allocations: 186.2 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004791/0.4217, allocations: 263.4 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.4219, allocations: 69.83 kB / 1.211 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.4222, allocations: 119.6 kB / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003056/0.4225, allocations: 147.5 kB / 1.211 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.075e-05/0.4225, allocations: 24 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001884/0.4227, allocations: 99.92 kB / 1.211 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.4229, allocations: 55.77 kB / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.423, allocations: 107.4 kB / 1.212 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004979/0.4235, allocations: 307 kB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4235, allocations: 0 / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.225e-06/0.4235, allocations: 0 / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.642e-05/0.4236, allocations: 0 / 1.212 GB, free: 5.477 MB / 0.9669 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.001082/0.4246, allocations: 0.5819 MB / 1.212 GB, free: 4.84 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.4247, allocations: 12.62 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.487e-05/0.4248, allocations: 28.56 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006088/0.4254, allocations: 306.8 kB / 1.213 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.779e-05/0.4255, allocations: 16.38 kB / 1.213 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.936e-05/0.4255, allocations: 20.27 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004477/0.426, allocations: 231.8 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.426, allocations: 0 / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.398e-05/0.426, allocations: 4 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.426, allocations: 8 kB / 1.213 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002867/0.4263, allocations: 128.3 kB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.4274, allocations: 0.6808 MB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003793/0.4278, allocations: 170.4 kB / 1.214 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.428, allocations: 101 kB / 1.214 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.428, allocations: 0 / 1.214 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002837/0.4283, allocations: 173 kB / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=15): time 1.588e-05/0.4284, allocations: 0 / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15): time 0.0007232/0.4291, allocations: 374.9 kB / 1.215 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.4292, allocations: 140.5 kB / 1.215 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.4295, allocations: 274.7 kB / 1.215 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.4296, allocations: 33.7 kB / 1.215 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.4297, allocations: 156.1 kB / 1.215 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.491e-05/0.4298, allocations: 51.44 kB / 1.215 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.531e-05/0.4299, allocations: 41.7 kB / 1.215 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.43, allocations: 334.8 kB / 1.216 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.4302, allocations: 87.89 kB / 1.216 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.4304, allocations: 135.5 kB / 1.216 GB, free: 1.152 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.4307, allocations: 244.4 kB / 1.216 GB, free: 0.8906 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4308, allocations: 0 / 1.216 GB, free: 0.8906 MB / 0.9669 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005118/0.4313, allocations: 331 kB / 1.216 GB, free: 0.5547 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.575e-05/0.4313, allocations: 37.7 kB / 1.216 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.4314, allocations: 4 kB / 1.216 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.4314, allocations: 3.984 kB / 1.216 GB, free: 0.5039 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.4315, allocations: 23.94 kB / 1.216 GB, free: 492 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.4315, allocations: 3.984 kB / 1.216 GB, free: 488 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.4317, allocations: 27.83 kB / 1.216 GB, free: 460 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.4317, allocations: 4 kB / 1.216 GB, free: 456 kB / 0.9669 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.0001983/0.4319, allocations: 191.6 kB / 1.217 GB, free: 248 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.147e-05/0.4319, allocations: 23.72 kB / 1.217 GB, free: 224 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.731e-05/0.432, allocations: 29.83 kB / 1.217 GB, free: 192 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.432, allocations: 4 kB / 1.217 GB, free: 188 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.432, allocations: 96 / 1.217 GB, free: 188 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.432, allocations: 7.922 kB / 1.217 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003049/0.4324, allocations: 289.4 kB / 1.217 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.4324, allocations: 0 / 1.217 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.4325, allocations: 19.92 kB / 1.217 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.4325, allocations: 7.938 kB / 1.217 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.4325, allocations: 7.984 kB / 1.217 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4325, allocations: 0 / 1.217 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4325, allocations: 0 / 1.217 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007453/0.4333, allocations: 472.8 kB / 1.217 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.813e-05/0.4334, allocations: 108.7 kB / 1.218 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.408e-05/0.4334, allocations: 12.06 kB / 1.218 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.857e-05/0.4335, allocations: 11.98 kB / 1.218 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.781e-05/0.4336, allocations: 19.97 kB / 1.218 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.4337, allocations: 8 kB / 1.218 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002065/0.4339, allocations: 201.9 kB / 1.218 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4339, allocations: 0 / 1.218 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003017/0.4342, allocations: 60.06 kB / 1.218 GB, free: 14.9 MB / 0.9825 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.0002798/0.4345, allocations: 135.2 kB / 1.218 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005182/0.435, allocations: 295.2 kB / 1.218 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.435, allocations: 0 / 1.218 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002502/0.4353, allocations: 191.3 kB / 1.218 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.4356, allocations: 31.5 kB / 1.218 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.4367, allocations: 469.2 kB / 1.219 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.4371, allocations: 0.7591 MB / 1.22 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.308e-05/0.4372, allocations: 17.55 kB / 1.22 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.07e-05/0.4372, allocations: 19.44 kB / 1.22 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.4372, allocations: 0 / 1.22 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of Templates: time 0.007422/0.4446, allocations: 2.85 MB / 1.222 GB, free: 10.09 MB / 0.9825 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/jenkins/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