Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001644/0.001644, allocations: 100.4 kB / 19.7 MB, free: 2.141 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.001983/0.001983, allocations: 209.7 kB / 22.99 MB, free: 4.961 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.744/2.744, allocations: 476 MB / 0.7707 GB, free: 4.723 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_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_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 70.47 kB / 1.118 GB, free: 41.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3003, allocations: 170 MB / 1.284 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00374/0.304, allocations: 1.936 MB / 1.286 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.3054, allocations: 0.6936 MB / 1.286 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.3055, allocations: 3.938 kB / 1.286 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002448/0.3058, allocations: 83.64 kB / 1.286 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.3059, allocations: 83.64 kB / 1.287 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006029/0.3065, allocations: 188.3 kB / 1.287 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003395/0.3068, allocations: 263.5 kB / 1.287 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.307, allocations: 46.17 kB / 1.287 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.3072, allocations: 119.6 kB / 1.287 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000232/0.3074, allocations: 151.5 kB / 1.287 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.255e-05/0.3074, allocations: 20 kB / 1.287 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.3076, allocations: 91.92 kB / 1.287 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.032e-05/0.3077, allocations: 63.7 kB / 1.287 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.3078, allocations: 79.53 kB / 1.287 GB, free: 8.137 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004583/0.3082, allocations: 310.8 kB / 1.288 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3083, allocations: 3.984 kB / 1.288 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3083, allocations: 0 / 1.288 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.09e-05/0.3083, allocations: 0 / 1.288 GB, free: 7.828 MB / 0.9825 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.0009144/0.3092, allocations: 0.5219 MB / 1.288 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.3092, allocations: 11.97 kB / 1.288 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.426e-05/0.3093, allocations: 32.75 kB / 1.288 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000563/0.3099, allocations: 245.2 kB / 1.289 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.3099, allocations: 16.38 kB / 1.289 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.191e-05/0.3099, allocations: 16.38 kB / 1.289 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004902/0.3104, allocations: 312.8 kB / 1.289 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.3104, allocations: 0 / 1.289 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.3104, allocations: 8 kB / 1.289 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.3105, allocations: 0 / 1.289 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002899/0.3107, allocations: 158.1 kB / 1.289 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008732/0.3116, allocations: 0.5791 MB / 1.29 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004039/0.312, allocations: 180.2 kB / 1.29 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.3122, allocations: 129.9 kB / 1.29 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.3122, allocations: 3.938 kB / 1.29 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003196/0.3126, allocations: 198.7 kB / 1.29 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 1.472e-06/0.3126, allocations: 4 kB / 1.29 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0007698/0.3133, allocations: 444.6 kB / 1.291 GB, free: 4.789 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.3134, allocations: 136.5 kB / 1.291 GB, free: 4.625 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/0.3137, allocations: 269.9 kB / 1.291 GB, free: 4.348 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.3137, allocations: 29.7 kB / 1.291 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.3139, allocations: 156.3 kB / 1.291 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.84e-05/0.3139, allocations: 51.58 kB / 1.291 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.676e-05/0.314, allocations: 37.72 kB / 1.291 GB, free: 4.062 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001756/0.3142, allocations: 338.8 kB / 1.292 GB, free: 3.723 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.3144, allocations: 121.7 kB / 1.292 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/0.3147, allocations: 218.1 kB / 1.292 GB, free: 3.348 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.315, allocations: 244.6 kB / 1.292 GB, free: 3.086 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.315, allocations: 0 / 1.292 GB, free: 3.086 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005929/0.3156, allocations: 383 kB / 1.292 GB, free: 2.695 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.823e-05/0.3157, allocations: 37.69 kB / 1.292 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3157, allocations: 0 / 1.292 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.3157, allocations: 4 kB / 1.292 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.3158, allocations: 23.98 kB / 1.292 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.3158, allocations: 4 kB / 1.292 GB, free: 2.621 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.316, allocations: 15.94 kB / 1.293 GB, free: 2.605 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.316, allocations: 12 kB / 1.293 GB, free: 2.594 MB / 0.9825 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.0002064/0.3162, allocations: 199.4 kB / 1.293 GB, free: 2.383 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.328e-05/0.3162, allocations: 27.86 kB / 1.293 GB, free: 2.355 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.503e-05/0.3163, allocations: 25.86 kB / 1.293 GB, free: 2.328 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3163, allocations: 3.938 kB / 1.293 GB, free: 2.324 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3163, allocations: 0 / 1.293 GB, free: 2.324 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3163, allocations: 0 / 1.293 GB, free: 2.324 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002393/0.3165, allocations: 213.1 kB / 1.293 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3165, allocations: 0 / 1.293 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.3166, allocations: 15.98 kB / 1.293 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3166, allocations: 4 kB / 1.293 GB, free: 2.066 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.3167, allocations: 4 kB / 1.293 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3167, allocations: 0 / 1.293 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3167, allocations: 4 kB / 1.293 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00082/0.3175, allocations: 0.529 MB / 1.294 GB, free: 1.492 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.726e-05/0.3175, allocations: 19.89 kB / 1.294 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.002e-05/0.3176, allocations: 8 kB / 1.294 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.3177, allocations: 11.98 kB / 1.294 GB, free: 1.453 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.966e-05/0.3178, allocations: 27.95 kB / 1.294 GB, free: 1.426 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.3178, allocations: 12 kB / 1.294 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001837/0.318, allocations: 193.2 kB / 1.294 GB, free: 1.23 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.318, allocations: 0 / 1.294 GB, free: 1.23 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002919/0.3183, allocations: 59.89 kB / 1.294 GB, free: 1.172 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.0002/0.3185, allocations: 133.6 kB / 1.294 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005498/0.319, allocations: 326.8 kB / 1.294 GB, free: 0.6914 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.319, allocations: 0 / 1.294 GB, free: 0.6914 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000255/0.3193, allocations: 185 kB / 1.294 GB, free: 0.4922 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.3196, allocations: 32.42 kB / 1.294 GB, free: 472 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008966/0.3205, allocations: 0.5115 MB / 1.295 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001523/0.3206, allocations: 140.7 kB / 1.295 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.737e-05/0.3207, allocations: 23.42 kB / 1.295 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of SimCode: time 4.21e-07/0.3207, allocations: 288 / 1.295 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of Templates: time 0.005735/0.3264, allocations: 3.037 MB / 1.298 GB, free: 12.71 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 11.32793259108439]