Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 111.3 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002252/0.002252, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 225.6 MB / 249.4 MB, free: 3.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.765/2.765, allocations: 443.4 MB / 0.7304 GB, free: 13.91 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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=2500,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 67.89 kB / 1.059 GB, free: 436 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4152/0.4172, allocations: 160.7 MB / 1.216 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004087/0.4213, allocations: 1.979 MB / 1.218 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001764/0.4231, allocations: 0.7323 MB / 1.219 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.4232, allocations: 4 kB / 1.219 GB, free: 12.65 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003022/0.4235, allocations: 83.64 kB / 1.219 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.4237, allocations: 87.58 kB / 1.219 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007235/0.4244, allocations: 191.5 kB / 1.219 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003793/0.4248, allocations: 263.5 kB / 1.219 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.4249, allocations: 49.83 kB / 1.219 GB, free: 12 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.4251, allocations: 111.7 kB / 1.22 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002731/0.4254, allocations: 171.4 kB / 1.22 GB, free: 11.72 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.132e-05/0.4254, allocations: 20 kB / 1.22 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001877/0.4256, allocations: 87.92 kB / 1.22 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.4257, allocations: 59.83 kB / 1.22 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.4259, allocations: 103.3 kB / 1.22 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004905/0.4264, allocations: 310.8 kB / 1.22 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.4264, allocations: 0 / 1.22 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4264, allocations: 0 / 1.22 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.4264, allocations: 3.984 kB / 1.22 GB, free: 11.14 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.0009968/0.4274, allocations: 0.5894 MB / 1.221 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.4274, allocations: 8.031 kB / 1.221 GB, free: 10.49 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.785e-05/0.4275, allocations: 36.75 kB / 1.221 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005671/0.4281, allocations: 307 kB / 1.221 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.4281, allocations: 16.36 kB / 1.221 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.391e-05/0.4281, allocations: 16.38 kB / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.4286, allocations: 227.8 kB / 1.221 GB, free: 9.84 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.4286, allocations: 3.938 kB / 1.221 GB, free: 9.836 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.4286, allocations: 8 kB / 1.221 GB, free: 9.828 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.4286, allocations: 4 kB / 1.221 GB, free: 9.824 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002861/0.4289, allocations: 136.3 kB / 1.222 GB, free: 9.691 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.43, allocations: 0.6771 MB / 1.222 GB, free: 8.957 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000374/0.4303, allocations: 158.4 kB / 1.222 GB, free: 8.793 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.4305, allocations: 84.95 kB / 1.222 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.4305, allocations: 0 / 1.222 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003131/0.4308, allocations: 177.1 kB / 1.223 GB, free: 8.516 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.4308, allocations: 0 / 1.223 GB, free: 8.516 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15): time 0.0007365/0.4316, allocations: 379 kB / 1.223 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.4317, allocations: 132.5 kB / 1.223 GB, free: 7.973 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003524/0.432, allocations: 278.7 kB / 1.223 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.157e-05/0.4321, allocations: 33.7 kB / 1.223 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.4322, allocations: 160.3 kB / 1.224 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.543e-05/0.4323, allocations: 39.67 kB / 1.224 GB, free: 7.453 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.705e-05/0.4324, allocations: 41.7 kB / 1.224 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4325, allocations: 338.8 kB / 1.224 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.4327, allocations: 91.89 kB / 1.224 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.4329, allocations: 129 kB / 1.224 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003555/0.4333, allocations: 248.9 kB / 1.224 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.4333, allocations: 3.938 kB / 1.224 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005646/0.4338, allocations: 339.2 kB / 1.225 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.01e-05/0.4339, allocations: 37.69 kB / 1.225 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.4339, allocations: 0 / 1.225 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.4339, allocations: 4 kB / 1.225 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.4341, allocations: 28.02 kB / 1.225 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.4341, allocations: 0 / 1.225 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.4342, allocations: 27.88 kB / 1.225 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.4342, allocations: 8 kB / 1.225 GB, free: 6.109 MB / 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.0002067/0.4344, allocations: 189.1 kB / 1.225 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.218e-05/0.4345, allocations: 27.86 kB / 1.225 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.281e-05/0.4345, allocations: 29.83 kB / 1.225 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.4345, allocations: 4 kB / 1.225 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.4345, allocations: 0 / 1.225 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.4345, allocations: 0 / 1.225 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003327/0.4349, allocations: 297.3 kB / 1.225 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4349, allocations: 0 / 1.225 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.435, allocations: 16.03 kB / 1.225 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.435, allocations: 7.922 kB / 1.225 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.435, allocations: 8 kB / 1.225 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.435, allocations: 7.984 kB / 1.225 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.435, allocations: 0 / 1.225 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007634/0.4358, allocations: 473.1 kB / 1.226 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 9.552e-05/0.4359, allocations: 100.9 kB / 1.226 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.4359, allocations: 8 kB / 1.226 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.436, allocations: 15.98 kB / 1.226 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.875e-05/0.4361, allocations: 23.97 kB / 1.226 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-05/0.4361, allocations: 20.02 kB / 1.226 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002128/0.4363, allocations: 202 kB / 1.226 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.4363, allocations: 0 / 1.226 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002993/0.4366, allocations: 59.88 kB / 1.226 GB, free: 4.547 MB / 0.9669 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.0002414/0.4369, allocations: 131.1 kB / 1.226 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005226/0.4374, allocations: 263.4 kB / 1.227 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4374, allocations: 0 / 1.227 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002361/0.4376, allocations: 155.3 kB / 1.227 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.438, allocations: 28.55 kB / 1.227 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.4391, allocations: 484.5 kB / 1.227 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.4395, allocations: 0.7475 MB / 1.228 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.828e-05/0.4396, allocations: 17.55 kB / 1.228 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.07e-05/0.4396, allocations: 19.44 kB / 1.228 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of SimCode: time 1.313e-06/0.4396, allocations: 0 / 1.228 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of Templates: time 0.008097/0.4477, allocations: 2.906 MB / 1.231 GB, free: 15.75 MB / 0.9825 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.896239220164716]