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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 78.72 kB / 19.18 MB, free: 2.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 167.2 kB / 22.46 MB, free: 5.363 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.566/1.566, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.096/3.096, allocations: 389 MB / 0.633 GB, free: 1.008 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_latest_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_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.895e-06/2.895e-06, allocations: 0 / 1 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.855e-05/4.145e-05, allocations: 5.797 kB / 1 GB, free: 7.312 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004335/0.004377, allocations: 1.926 MB / 1.002 GB, free: 5.379 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001833/0.00621, allocations: 0.7089 MB / 1.003 GB, free: 4.664 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000218/0.006428, allocations: 0 / 1.003 GB, free: 4.664 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003172/0.006745, allocations: 83.64 kB / 1.003 GB, free: 4.582 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.006906, allocations: 91.52 kB / 1.003 GB, free: 4.492 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007116/0.007618, allocations: 193.8 kB / 1.003 GB, free: 4.305 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003713/0.007989, allocations: 263.3 kB / 1.003 GB, free: 4.047 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.008163, allocations: 46.16 kB / 1.003 GB, free: 3.996 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002524/0.008416, allocations: 155.7 kB / 1.003 GB, free: 3.844 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002507/0.008666, allocations: 139.7 kB / 1.004 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.89e-05/0.008715, allocations: 20 kB / 1.004 GB, free: 3.688 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.008884, allocations: 91.91 kB / 1.004 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.94e-05/0.008983, allocations: 55.78 kB / 1.004 GB, free: 3.543 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.009091, allocations: 59.78 kB / 1.004 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005074/0.009598, allocations: 335 kB / 1.004 GB, free: 3.156 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.009602, allocations: 0 / 1.004 GB, free: 3.156 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.082e-06/0.009604, allocations: 0 / 1.004 GB, free: 3.156 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.00961, allocations: 0 / 1.004 GB, free: 3.156 MB / 0.9512 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.0009881/0.0106, allocations: 0.5142 MB / 1.005 GB, free: 2.605 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.01064, allocations: 11.97 kB / 1.005 GB, free: 2.594 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.162e-05/0.01073, allocations: 32.75 kB / 1.005 GB, free: 2.562 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005897/0.01132, allocations: 240.9 kB / 1.005 GB, free: 2.301 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.282e-05/0.01135, allocations: 20.31 kB / 1.005 GB, free: 2.281 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.851e-05/0.01139, allocations: 16.38 kB / 1.005 GB, free: 2.266 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.0119, allocations: 300.9 kB / 1.005 GB, free: 1.93 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.01192, allocations: 8.172 kB / 1.005 GB, free: 1.922 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.515e-05/0.01194, allocations: 8.125 kB / 1.005 GB, free: 1.914 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.01195, allocations: 4 kB / 1.005 GB, free: 1.91 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000311/0.01226, allocations: 166 kB / 1.005 GB, free: 1.742 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009234/0.01319, allocations: 0.579 MB / 1.006 GB, free: 1.125 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004459/0.01363, allocations: 180.4 kB / 1.006 GB, free: 0.9336 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002128/0.01384, allocations: 122.5 kB / 1.006 GB, free: 0.8047 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.01386, allocations: 0 / 1.006 GB, free: 0.8047 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003599/0.01422, allocations: 206.7 kB / 1.006 GB, free: 0.5781 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=15): time 1.894e-06/0.01422, allocations: 0 / 1.006 GB, free: 0.5781 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15): time 0.0008499/0.01507, allocations: 442.4 kB / 1.007 GB, free: 124 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.01521, allocations: 136.5 kB / 1.007 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.01552, allocations: 273.8 kB / 1.007 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.01555, allocations: 29.64 kB / 1.007 GB, free: 15.65 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.0157, allocations: 156.4 kB / 1.007 GB, free: 15.49 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.838e-05/0.01575, allocations: 47.62 kB / 1.008 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.858e-05/0.01583, allocations: 41.7 kB / 1.008 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002071/0.01604, allocations: 334.8 kB / 1.008 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.01624, allocations: 117.7 kB / 1.008 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000286/0.01653, allocations: 218.2 kB / 1.008 GB, free: 14.69 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004144/0.01694, allocations: 244.4 kB / 1.008 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.01695, allocations: 0 / 1.008 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006628/0.01761, allocations: 380.8 kB / 1.009 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.83e-05/0.01767, allocations: 33.69 kB / 1.009 GB, free: 14 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.01767, allocations: 4 kB / 1.009 GB, free: 14 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.01769, allocations: 0 / 1.009 GB, free: 14 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.01784, allocations: 31.92 kB / 1.009 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.01785, allocations: 0 / 1.009 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.01797, allocations: 23.88 kB / 1.009 GB, free: 13.94 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.01799, allocations: 4 kB / 1.009 GB, free: 13.94 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.0002283/0.01822, allocations: 200 kB / 1.009 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.207e-05/0.01826, allocations: 31.73 kB / 1.009 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.76e-05/0.01833, allocations: 25.77 kB / 1.009 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.01833, allocations: 4 kB / 1.009 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.01834, allocations: 4 kB / 1.009 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.01834, allocations: 96 / 1.009 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002543/0.0186, allocations: 213 kB / 1.009 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.0186, allocations: 0 / 1.009 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.0187, allocations: 16 kB / 1.009 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.01871, allocations: 3.938 kB / 1.009 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.01873, allocations: 7.984 kB / 1.009 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01873, allocations: 4 kB / 1.009 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01873, allocations: 0 / 1.009 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008605/0.01959, allocations: 0.5159 MB / 1.01 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.734e-05/0.01963, allocations: 27.77 kB / 1.01 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.431e-05/0.01968, allocations: 7.984 kB / 1.01 GB, free: 12.81 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.01979, allocations: 15.98 kB / 1.01 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.132e-05/0.01988, allocations: 23.95 kB / 1.01 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.01991, allocations: 8.062 kB / 1.01 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002167/0.02012, allocations: 193.2 kB / 1.01 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.02012, allocations: 0 / 1.01 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003047/0.02043, allocations: 59.89 kB / 1.01 GB, free: 12.52 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.0002527/0.02068, allocations: 133.5 kB / 1.01 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006084/0.02129, allocations: 326.6 kB / 1.011 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.02129, allocations: 192 / 1.011 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.02156, allocations: 193 kB / 1.011 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.02186, allocations: 26.67 kB / 1.011 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009061/0.02277, allocations: 484.4 kB / 1.011 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001649/0.02293, allocations: 144.7 kB / 1.011 GB, free: 11.13 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.253e-05/0.02301, allocations: 21.42 kB / 1.011 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.337e-05/0.02306, allocations: 16.5 kB / 1.011 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of SimCode: time 4.11e-07/0.02306, allocations: 0 / 1.011 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of Templates: time 0.007972/0.03103, allocations: 2.873 MB / 1.014 GB, free: 8.254 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.277074839919806]