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.0008557/0.0008557, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001076/0.001931, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007117/0.0007117, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009666/0.001678, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.9492/0.9492, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09454/1.044, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.432/2.432, allocations: 446.7 MB / 0.6745 GB, free: 6.203 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2711/2.703, allocations: 145.9 MB / 0.817 GB, free: 4.203 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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.162e-06/1.162e-06, allocations: 0 / 0.8183 GB, free: 2.906 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.983e-05/2.099e-05, allocations: 6.25 kB / 0.8183 GB, free: 2.898 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002641/0.002662, allocations: 2.029 MB / 0.8203 GB, free: 0.8516 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0009178/0.00358, allocations: 0.732 MB / 0.821 GB, free: 116 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.007e-05/0.00367, allocations: 4 kB / 0.821 GB, free: 112 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.003837, allocations: 95.56 kB / 0.8211 GB, free: 16 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.003946, allocations: 99.62 kB / 0.8212 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003617/0.004308, allocations: 183.6 kB / 0.8214 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002571/0.004565, allocations: 247.4 kB / 0.8216 GB, free: 15.49 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.00469, allocations: 54.75 kB / 0.8216 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.004874, allocations: 183.5 kB / 0.8218 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.005019, allocations: 111.7 kB / 0.8219 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.005046, allocations: 16 kB / 0.8219 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.005184, allocations: 95.92 kB / 0.822 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 5.665e-05/0.005241, allocations: 51.8 kB / 0.8221 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 5.159e-05/0.005293, allocations: 43.88 kB / 0.8221 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.005539, allocations: 211.2 kB / 0.8223 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.366e-05/0.005553, allocations: 4 kB / 0.8223 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.012e-06/0.005554, allocations: 0 / 0.8223 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.358e-05/0.005568, allocations: 0 / 0.8223 GB, free: 14.73 MB / 0.8073 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.000586/0.006154, allocations: 0.5085 MB / 0.8228 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.006187, allocations: 8.625 kB / 0.8228 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.911e-05/0.006236, allocations: 32.91 kB / 0.8229 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.006449, allocations: 204.8 kB / 0.8231 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.006472, allocations: 12.38 kB / 0.8231 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.057e-05/0.006503, allocations: 16.38 kB / 0.8231 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.006746, allocations: 260.3 kB / 0.8233 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.006754, allocations: 192 / 0.8233 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.006766, allocations: 4.375 kB / 0.8233 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.006773, allocations: 7.938 kB / 0.8233 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.939e-05/0.006853, allocations: 80.91 kB / 0.8234 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005014/0.007354, allocations: 463.7 kB / 0.8239 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/0.007539, allocations: 140.1 kB / 0.824 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.463e-05/0.007594, allocations: 66.58 kB / 0.8241 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.007604, allocations: 4 kB / 0.8241 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000141/0.007745, allocations: 149.6 kB / 0.8242 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.007747, allocations: 0 / 0.8242 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.0002199/0.007967, allocations: 221 kB / 0.8244 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.008006, allocations: 85.11 kB / 0.8245 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.008141, allocations: 232.9 kB / 0.8247 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.008159, allocations: 33.64 kB / 0.8248 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.508e-05/0.008224, allocations: 140.8 kB / 0.8249 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.008254, allocations: 43.62 kB / 0.8249 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.587e-05/0.0083, allocations: 41.69 kB / 0.825 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.454e-05/0.008384, allocations: 334.8 kB / 0.8253 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.359e-05/0.008438, allocations: 52.52 kB / 0.8253 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.12e-05/0.008519, allocations: 156.7 kB / 0.8255 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.99e-05/0.008619, allocations: 149.6 kB / 0.8256 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.008621, allocations: 0 / 0.8256 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001475/0.008769, allocations: 186.5 kB / 0.8258 GB, free: 10.82 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.24e-05/0.008811, allocations: 45.62 kB / 0.8259 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.008817, allocations: 0 / 0.8259 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.008826, allocations: 4 kB / 0.8259 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.669e-05/0.008913, allocations: 23.98 kB / 0.8259 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.416e-06/0.008916, allocations: 0 / 0.8259 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.146e-05/0.008977, allocations: 19.89 kB / 0.8259 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.008988, allocations: 8.094 kB / 0.8259 GB, free: 10.72 MB / 0.8073 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 9.947e-05/0.009088, allocations: 166.3 kB / 0.8261 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.455e-05/0.009112, allocations: 23.97 kB / 0.8261 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.505e-05/0.009147, allocations: 29.7 kB / 0.8261 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.00915, allocations: 0 / 0.8261 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.009152, allocations: 0 / 0.8261 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.009156, allocations: 0 / 0.8261 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.009272, allocations: 133.7 kB / 0.8262 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.009274, allocations: 0 / 0.8262 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.294e-05/0.009337, allocations: 27.92 kB / 0.8263 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.972e-05/0.009356, allocations: 15.86 kB / 0.8263 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.009358, allocations: 0 / 0.8263 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.00937, allocations: 7.938 kB / 0.8263 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.00937, allocations: 0 / 0.8263 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.009373, allocations: 3.984 kB / 0.8263 GB, free: 10.28 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002317/0.009605, allocations: 279.7 kB / 0.8266 GB, free: 9.969 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.628e-05/0.009631, allocations: 12 kB / 0.8266 GB, free: 9.957 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.307e-05/0.009674, allocations: 4 kB / 0.8266 GB, free: 9.953 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.629e-05/0.009731, allocations: 35.86 kB / 0.8266 GB, free: 9.918 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.009745, allocations: 11.98 kB / 0.8266 GB, free: 9.906 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.638e-05/0.009801, allocations: 74.78 kB / 0.8267 GB, free: 9.832 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.009802, allocations: 0 / 0.8267 GB, free: 9.832 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001635/0.009965, allocations: 63.83 kB / 0.8268 GB, free: 9.77 MB / 0.8073 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.0001507/0.01012, allocations: 125.7 kB / 0.8269 GB, free: 9.645 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001868/0.0103, allocations: 207.6 kB / 0.8271 GB, free: 9.414 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.607e-05/0.01032, allocations: 8.188 kB / 0.8271 GB, free: 9.406 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.409e-05/0.0104, allocations: 145.9 kB / 0.8272 GB, free: 9.242 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001556/0.01056, allocations: 44.45 kB / 0.8273 GB, free: 9.195 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006299/0.01119, allocations: 411.5 kB / 0.8277 GB, free: 8.758 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.563e-05/0.01123, allocations: 87.81 kB / 0.8277 GB, free: 8.652 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.119e-05/0.01129, allocations: 17.48 kB / 0.8278 GB, free: 8.637 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.0114, allocations: 103.3 kB / 0.8279 GB, free: 8.535 MB / 0.8073 GB Notification: Performance of SimCode: time 1.112e-06/0.01141, allocations: 0 / 0.8279 GB, free: 8.535 MB / 0.8073 GB Notification: Performance of Templates: time 0.00585/0.01726, allocations: 3.223 MB / 0.831 GB, free: 5.352 MB / 0.8073 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 -ignoreHideResult -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.283354703336954]