Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001423/0.001423, allocations: 104.3 kB / 19.7 MB, free: 2.152 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.00159/0.00159, allocations: 214.6 kB / 22.99 MB, free: 4.965 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.581/1.581, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.497/3.497, allocations: 0.49 GB / 0.7959 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002104/0.002104, allocations: 68.52 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4731/0.4752, allocations: 176.1 MB / 1.327 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004106/0.4793, allocations: 1.931 MB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.4809, allocations: 0.7013 MB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001245/0.4811, allocations: 3.938 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.4813, allocations: 87.64 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001498/0.4815, allocations: 87.64 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006374/0.4821, allocations: 185.5 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003639/0.4825, allocations: 263.4 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.4827, allocations: 54.16 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.4828, allocations: 119.6 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002604/0.4831, allocations: 155.5 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.869e-05/0.4832, allocations: 23.94 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001694/0.4833, allocations: 91.92 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.4834, allocations: 59.78 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.4836, allocations: 87.45 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004812/0.484, allocations: 310.8 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.484, allocations: 0 / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.773e-06/0.484, allocations: 0 / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.4841, allocations: 3.938 kB / 1.331 GB, free: 12.84 MB / 1.029 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.0009688/0.485, allocations: 0.518 MB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.4851, allocations: 8.031 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.296e-05/0.4851, allocations: 32.75 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005702/0.4857, allocations: 249.2 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.4857, allocations: 8.375 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/0.4858, allocations: 16.38 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005256/0.4863, allocations: 308.4 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.4863, allocations: 3.938 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.4863, allocations: 8 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.4864, allocations: 8 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/0.4866, allocations: 154.8 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009035/0.4876, allocations: 0.5674 MB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004332/0.488, allocations: 188.4 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.4882, allocations: 127.5 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.4882, allocations: 0 / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003283/0.4885, allocations: 206.8 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.4885, allocations: 0 / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0008135/0.4893, allocations: 436.4 kB / 1.334 GB, free: 9.824 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.4894, allocations: 136.5 kB / 1.334 GB, free: 9.66 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003024/0.4897, allocations: 269.9 kB / 1.334 GB, free: 9.387 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.4898, allocations: 29.7 kB / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.4899, allocations: 156.3 kB / 1.334 GB, free: 9.191 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.553e-05/0.49, allocations: 55.52 kB / 1.334 GB, free: 9.137 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.164e-05/0.4901, allocations: 41.7 kB / 1.334 GB, free: 9.09 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001936/0.4903, allocations: 334.8 kB / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.4905, allocations: 113.7 kB / 1.335 GB, free: 8.637 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/0.4908, allocations: 222.1 kB / 1.335 GB, free: 8.383 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003793/0.4912, allocations: 244.5 kB / 1.335 GB, free: 8.121 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.4912, allocations: 0 / 1.335 GB, free: 8.121 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006283/0.4918, allocations: 381.5 kB / 1.336 GB, free: 7.73 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.816e-05/0.4918, allocations: 37.78 kB / 1.336 GB, free: 7.688 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.912e-06/0.4918, allocations: 3.938 kB / 1.336 GB, free: 7.684 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.4919, allocations: 4 kB / 1.336 GB, free: 7.68 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.492, allocations: 27.92 kB / 1.336 GB, free: 7.652 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.492, allocations: 8.094 kB / 1.336 GB, free: 7.645 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.4921, allocations: 15.94 kB / 1.336 GB, free: 7.629 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.4921, allocations: 8 kB / 1.336 GB, free: 7.621 MB / 1.029 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.0002096/0.4924, allocations: 209.9 kB / 1.336 GB, free: 7.402 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.066e-05/0.4924, allocations: 23.86 kB / 1.336 GB, free: 7.379 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.081e-05/0.4925, allocations: 25.77 kB / 1.336 GB, free: 7.352 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.4925, allocations: 0 / 1.336 GB, free: 7.352 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4925, allocations: 0 / 1.336 GB, free: 7.352 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.4925, allocations: 4 kB / 1.336 GB, free: 7.348 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002305/0.4927, allocations: 205.1 kB / 1.336 GB, free: 7.117 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4927, allocations: 0 / 1.336 GB, free: 7.117 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.4928, allocations: 19.98 kB / 1.336 GB, free: 7.098 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.4928, allocations: 4 kB / 1.336 GB, free: 7.094 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.4928, allocations: 0 / 1.336 GB, free: 7.094 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.4928, allocations: 4 kB / 1.336 GB, free: 7.09 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.4928, allocations: 0 / 1.336 GB, free: 7.09 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007844/0.4936, allocations: 0.5275 MB / 1.337 GB, free: 6.527 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.097e-05/0.4937, allocations: 27.94 kB / 1.337 GB, free: 6.5 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.279e-05/0.4937, allocations: 11.94 kB / 1.337 GB, free: 6.488 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.4938, allocations: 11.98 kB / 1.337 GB, free: 6.477 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.614e-05/0.4939, allocations: 27.94 kB / 1.337 GB, free: 6.449 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.4939, allocations: 8 kB / 1.337 GB, free: 6.441 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001982/0.4941, allocations: 193.2 kB / 1.337 GB, free: 6.254 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4941, allocations: 0 / 1.337 GB, free: 6.254 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003029/0.4944, allocations: 59.89 kB / 1.337 GB, free: 6.195 MB / 1.029 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.0002192/0.4946, allocations: 138.9 kB / 1.337 GB, free: 6.055 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005564/0.4952, allocations: 322.6 kB / 1.338 GB, free: 5.715 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4952, allocations: 0 / 1.338 GB, free: 5.715 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002595/0.4955, allocations: 185 kB / 1.338 GB, free: 5.516 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.4958, allocations: 37.84 kB / 1.338 GB, free: 5.48 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008917/0.4967, allocations: 490.1 kB / 1.338 GB, free: 4.965 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.4969, allocations: 144.5 kB / 1.338 GB, free: 4.809 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.683e-05/0.4969, allocations: 17.42 kB / 1.338 GB, free: 4.793 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/0.497, allocations: 15.44 kB / 1.338 GB, free: 4.777 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.497, allocations: 0 / 1.338 GB, free: 4.777 MB / 1.029 GB Notification: Performance of Templates: time 0.007537/0.5045, allocations: 3.128 MB / 1.341 GB, free: 1.688 MB / 1.029 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,mot.y,mot.uppHys.y,mot.delta,ySet.y,mot.lowHys.u,mot.lowHys.y,mot.uppHys.u Variables in the result:mot.add.k1,mot.add.k2,mot.delta,mot.int.initType,mot.int.k,mot.int.limitsAtInit,mot.int.outMax,mot.int.outMin,mot.int.strict,mot.int.y,mot.int.y_start,mot.lowHys.pre_y_start,mot.lowHys.u,mot.lowHys.uHigh,mot.lowHys.uLow,mot.lowHys.y,mot.tClo,mot.tOpe,mot.uppHys.pre_y_start,mot.uppHys.u,mot.uppHys.uHigh,mot.uppHys.uLow,mot.uppHys.y,mot.vClo.k,mot.vOpe.k,mot.y,mot.y_start,mot.zer.k,time,ySet.offset,ySet.shiftTime,ySet.startTime,ySet.table[1,1],ySet.table[1,2],ySet.table[10,1],ySet.table[10,2],ySet.table[11,1],ySet.table[11,2],ySet.table[12,1],ySet.table[12,2],ySet.table[13,1],ySet.table[13,2],ySet.table[2,1],ySet.table[2,2],ySet.table[3,1],ySet.table[3,2],ySet.table[4,1],ySet.table[4,2],ySet.table[5,1],ySet.table[5,2],ySet.table[6,1],ySet.table[6,2],ySet.table[7,1],ySet.table[7,2],ySet.table[8,1],ySet.table[8,2],ySet.table[9,1],ySet.table[9,2],ySet.timeScale,ySet.y [Calling sys.exit(0), Time elapsed: 10.20557784200355]