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.001953/0.001953, allocations: 93.47 kB / 19.44 MB, free: 336 kB / 13.93 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.002141/0.002141, allocations: 169.2 kB / 22.76 MB, free: 1.664 MB / 18.57 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.633/1.633, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.7 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.532/3.532, allocations: 429.4 MB / 0.6729 GB, free: 4.012 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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 1.673e-06/1.673e-06, allocations: 0 / 0.8774 GB, free: 6.664 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.478e-05/3.646e-05, allocations: 4.281 kB / 0.8774 GB, free: 6.66 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003783/0.00382, allocations: 1.969 MB / 0.8794 GB, free: 4.703 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001599/0.005419, allocations: 0.7112 MB / 0.88 GB, free: 3.988 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.005544, allocations: 9.031 kB / 0.8801 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0002862/0.00583, allocations: 71.7 kB / 0.8801 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.006017, allocations: 106.4 kB / 0.8802 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006348/0.006652, allocations: 186.8 kB / 0.8804 GB, free: 3.629 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003953/0.007047, allocations: 255.4 kB / 0.8806 GB, free: 3.379 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.007216, allocations: 50.16 kB / 0.8807 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002586/0.007475, allocations: 151.7 kB / 0.8808 GB, free: 3.176 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002471/0.007722, allocations: 139.7 kB / 0.881 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 5.108e-05/0.007773, allocations: 20 kB / 0.881 GB, free: 3.02 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.007962, allocations: 91.86 kB / 0.8811 GB, free: 2.93 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.008078, allocations: 68.7 kB / 0.8811 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.008183, allocations: 59.78 kB / 0.8812 GB, free: 2.805 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005254/0.008708, allocations: 332 kB / 0.8815 GB, free: 2.48 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.008714, allocations: 0 / 0.8815 GB, free: 2.48 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.044e-06/0.008716, allocations: 0 / 0.8815 GB, free: 2.48 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.008724, allocations: 1.125 kB / 0.8815 GB, free: 2.48 MB / 0.8386 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.001229/0.009952, allocations: 0.6187 MB / 0.8821 GB, free: 1.82 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.01, allocations: 8.031 kB / 0.8821 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.01013, allocations: 45.53 kB / 0.8822 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005498/0.01068, allocations: 247.2 kB / 0.8824 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.595e-05/0.01071, allocations: 16.36 kB / 0.8824 GB, free: 1.492 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.959e-05/0.01076, allocations: 20.3 kB / 0.8824 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007224/0.01148, allocations: 291 kB / 0.8827 GB, free: 1.141 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.01149, allocations: 192 / 0.8827 GB, free: 1.141 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.01152, allocations: 8.125 kB / 0.8827 GB, free: 1.133 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.01153, allocations: 7.984 kB / 0.8827 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002827/0.01181, allocations: 126.7 kB / 0.8829 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.01293, allocations: 0.7806 MB / 0.8836 GB, free: 176 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003484/0.01328, allocations: 154.7 kB / 0.8838 GB, free: 4 kB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.01346, allocations: 93.5 kB / 0.8839 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.01348, allocations: 0 / 0.8839 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003214/0.0138, allocations: 185.4 kB / 0.884 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.0138, allocations: 0 / 0.884 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15): time 0.0006943/0.0145, allocations: 322.6 kB / 0.8843 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.01461, allocations: 136.5 kB / 0.8845 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003952/0.01501, allocations: 352.3 kB / 0.8848 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.576e-05/0.01504, allocations: 33.7 kB / 0.8848 GB, free: 14.79 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.01524, allocations: 219.1 kB / 0.8851 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 6.05e-05/0.0153, allocations: 47.69 kB / 0.8851 GB, free: 14.53 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.976e-05/0.0154, allocations: 51.36 kB / 0.8851 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0003125/0.01571, allocations: 0.5235 MB / 0.8857 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.01588, allocations: 85.67 kB / 0.8857 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002757/0.01616, allocations: 207.1 kB / 0.8859 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003442/0.0165, allocations: 208.5 kB / 0.8861 GB, free: 13.37 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.0165, allocations: 0 / 0.8861 GB, free: 13.37 MB / 0.8542 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005185/0.01702, allocations: 288.7 kB / 0.8864 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.738e-05/0.01708, allocations: 37.69 kB / 0.8864 GB, free: 13.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.01708, allocations: 3.938 kB / 0.8865 GB, free: 13.02 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.0171, allocations: 4 kB / 0.8865 GB, free: 13.02 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.01722, allocations: 19.98 kB / 0.8865 GB, free: 13 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.01723, allocations: 4.094 kB / 0.8865 GB, free: 12.99 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.01734, allocations: 27.88 kB / 0.8865 GB, free: 12.96 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.01736, allocations: 7.938 kB / 0.8865 GB, free: 12.96 MB / 0.8542 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.0002244/0.01759, allocations: 217.3 kB / 0.8867 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.62e-05/0.01765, allocations: 39.75 kB / 0.8868 GB, free: 12.69 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.918e-05/0.01771, allocations: 25.78 kB / 0.8868 GB, free: 12.67 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.01772, allocations: 4 kB / 0.8868 GB, free: 12.66 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.01772, allocations: 3.984 kB / 0.8868 GB, free: 12.66 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.01773, allocations: 4 kB / 0.8868 GB, free: 12.66 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003244/0.01805, allocations: 248.5 kB / 0.887 GB, free: 12.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.01805, allocations: 0 / 0.887 GB, free: 12.38 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.01815, allocations: 15.92 kB / 0.887 GB, free: 12.36 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.696e-06/0.01816, allocations: 7.938 kB / 0.8871 GB, free: 12.36 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.01818, allocations: 4 kB / 0.8871 GB, free: 12.35 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.01819, allocations: 4 kB / 0.8871 GB, free: 12.35 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.01819, allocations: 0 / 0.8871 GB, free: 12.35 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007415/0.01893, allocations: 401.4 kB / 0.8874 GB, free: 11.91 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.554e-05/0.01899, allocations: 39.62 kB / 0.8875 GB, free: 11.88 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.911e-05/0.01903, allocations: 8.031 kB / 0.8875 GB, free: 11.87 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.66e-05/0.01912, allocations: 15.98 kB / 0.8875 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.563e-05/0.01922, allocations: 23.95 kB / 0.8875 GB, free: 11.83 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.911e-05/0.01925, allocations: 11.98 kB / 0.8875 GB, free: 11.82 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002206/0.01947, allocations: 221.1 kB / 0.8877 GB, free: 11.61 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01947, allocations: 0 / 0.8877 GB, free: 11.61 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003073/0.01977, allocations: 59.92 kB / 0.8878 GB, free: 11.55 MB / 0.8542 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.0002452/0.02002, allocations: 129.3 kB / 0.8879 GB, free: 11.41 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0005442/0.02056, allocations: 298.3 kB / 0.8882 GB, free: 11.09 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.02057, allocations: 0 / 0.8882 GB, free: 11.09 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.02083, allocations: 180.7 kB / 0.8884 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/0.02114, allocations: 32.55 kB / 0.8884 GB, free: 10.87 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009042/0.02204, allocations: 439.6 kB / 0.8888 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/0.02222, allocations: 140.7 kB / 0.889 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 7.879e-05/0.02229, allocations: 17.48 kB / 0.889 GB, free: 10.23 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.681e-05/0.02235, allocations: 16.5 kB / 0.889 GB, free: 10.21 MB / 0.8542 GB Notification: Performance of SimCode: time 6.41e-07/0.02235, allocations: 0 / 0.889 GB, free: 10.21 MB / 0.8542 GB Notification: Performance of Templates: time 0.00833/0.03068, allocations: 2.9 MB / 0.8918 GB, free: 7.355 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 240] 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.090234591974877]