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.001759/0.001759, allocations: 113.3 kB / 17.13 MB, free: 5.926 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.002167/0.002167, allocations: 204 kB / 20.09 MB, free: 2.977 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.52/1.52, allocations: 230.6 MB / 253.5 MB, free: 15.09 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 2.973/2.973, allocations: 0.49 GB / 0.7923 GB, free: 1.344 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.002059/0.002059, allocations: 65.92 kB / 1.15 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.077/1.079, allocations: 176.1 MB / 1.322 GB, free: 25.01 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002657/1.081, allocations: 1.983 MB / 1.324 GB, free: 23.62 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00104/1.083, allocations: 0.7544 MB / 1.325 GB, free: 23.1 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.967e-05/1.083, allocations: 2.719 kB / 1.325 GB, free: 23.1 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002035/1.083, allocations: 78.61 kB / 1.325 GB, free: 23.09 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001025/1.083, allocations: 92.61 kB / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/1.083, allocations: 186 kB / 1.325 GB, free: 22.96 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002422/1.084, allocations: 265.3 kB / 1.325 GB, free: 22.84 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/1.084, allocations: 53.33 kB / 1.325 GB, free: 22.82 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/1.084, allocations: 113.7 kB / 1.325 GB, free: 22.77 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/1.084, allocations: 161.7 kB / 1.326 GB, free: 22.72 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.31e-05/1.084, allocations: 18.03 kB / 1.326 GB, free: 22.72 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/1.084, allocations: 94.98 kB / 1.326 GB, free: 22.7 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.599e-05/1.084, allocations: 64.02 kB / 1.326 GB, free: 22.66 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.388e-05/1.084, allocations: 108 kB / 1.326 GB, free: 22.59 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002961/1.085, allocations: 310.5 kB / 1.326 GB, free: 22.46 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/1.085, allocations: 0 / 1.326 GB, free: 22.46 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.232e-06/1.085, allocations: 0 / 1.326 GB, free: 22.46 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.031e-05/1.085, allocations: 0 / 1.326 GB, free: 22.46 MB / 1.061 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.0007581/1.085, allocations: 0.5892 MB / 1.327 GB, free: 21.94 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/1.086, allocations: 18.98 kB / 1.327 GB, free: 21.93 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.498e-05/1.086, allocations: 28.91 kB / 1.327 GB, free: 21.91 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004469/1.086, allocations: 300.9 kB / 1.327 GB, free: 21.66 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/1.086, allocations: 14.78 kB / 1.327 GB, free: 21.65 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/1.086, allocations: 14.56 kB / 1.327 GB, free: 21.65 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003856/1.086, allocations: 226.8 kB / 1.327 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/1.086, allocations: 0 / 1.327 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.273e-05/1.086, allocations: 6 kB / 1.327 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/1.087, allocations: 7.938 kB / 1.327 GB, free: 21.51 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002859/1.087, allocations: 132.1 kB / 1.327 GB, free: 21.47 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007211/1.088, allocations: 0.6729 MB / 1.328 GB, free: 20.92 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003693/1.088, allocations: 162.5 kB / 1.328 GB, free: 20.85 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/1.088, allocations: 93.2 kB / 1.328 GB, free: 20.82 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/1.088, allocations: 1.906 kB / 1.328 GB, free: 20.82 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000258/1.088, allocations: 166.5 kB / 1.328 GB, free: 20.71 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 2.265e-06/1.088, allocations: 3.984 kB / 1.328 GB, free: 20.71 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0007262/1.089, allocations: 379 kB / 1.329 GB, free: 20.56 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/1.089, allocations: 139.6 kB / 1.329 GB, free: 20.4 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/1.089, allocations: 278.6 kB / 1.329 GB, free: 20.25 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/1.089, allocations: 32.17 kB / 1.329 GB, free: 20.21 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/1.089, allocations: 152.6 kB / 1.329 GB, free: 20.08 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.374e-05/1.09, allocations: 53.52 kB / 1.329 GB, free: 20.04 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.202e-05/1.09, allocations: 40.95 kB / 1.329 GB, free: 20.01 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.401e-05/1.09, allocations: 337.4 kB / 1.33 GB, free: 19.69 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/1.09, allocations: 93.03 kB / 1.33 GB, free: 19.66 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/1.09, allocations: 128 kB / 1.33 GB, free: 19.59 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/1.09, allocations: 240.5 kB / 1.33 GB, free: 19.44 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.09, allocations: 1.125 kB / 1.33 GB, free: 19.44 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005151/1.091, allocations: 330.3 kB / 1.331 GB, free: 19.3 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.918e-05/1.091, allocations: 39.59 kB / 1.331 GB, free: 19.27 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/1.091, allocations: 1.062 kB / 1.331 GB, free: 19.27 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/1.091, allocations: 6.859 kB / 1.331 GB, free: 19.27 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/1.091, allocations: 28.8 kB / 1.331 GB, free: 19.26 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/1.091, allocations: 3.5 kB / 1.331 GB, free: 19.26 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/1.091, allocations: 34.06 kB / 1.331 GB, free: 19.24 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/1.091, allocations: 5.344 kB / 1.331 GB, free: 19.24 MB / 1.061 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.0001464/1.091, allocations: 195.3 kB / 1.331 GB, free: 19.07 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.106e-05/1.091, allocations: 25.62 kB / 1.331 GB, free: 19.06 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.816e-05/1.091, allocations: 34.83 kB / 1.331 GB, free: 19.04 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/1.091, allocations: 6.312 kB / 1.331 GB, free: 19.03 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/1.091, allocations: 0 / 1.331 GB, free: 19.03 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/1.091, allocations: 0.75 kB / 1.331 GB, free: 19.03 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002524/1.092, allocations: 289.5 kB / 1.331 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/1.092, allocations: 0 / 1.331 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/1.092, allocations: 15.03 kB / 1.331 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/1.092, allocations: 0.7812 kB / 1.331 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/1.092, allocations: 3.953 kB / 1.331 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/1.092, allocations: 1.703 kB / 1.331 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/1.092, allocations: 4 kB / 1.331 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007405/1.093, allocations: 476.5 kB / 1.332 GB, free: 18.57 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.916e-05/1.093, allocations: 95.94 kB / 1.332 GB, free: 18.47 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/1.093, allocations: 8.547 kB / 1.332 GB, free: 18.46 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/1.093, allocations: 12.42 kB / 1.332 GB, free: 18.46 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.567e-05/1.093, allocations: 28.02 kB / 1.332 GB, free: 18.46 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.561e-05/1.093, allocations: 9.5 kB / 1.332 GB, free: 18.45 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001941/1.093, allocations: 203 kB / 1.332 GB, free: 18.34 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/1.093, allocations: 0 / 1.332 GB, free: 18.34 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003003/1.093, allocations: 55.34 kB / 1.332 GB, free: 18.34 MB / 1.061 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.000191/1.094, allocations: 140.9 kB / 1.332 GB, free: 18.23 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004868/1.094, allocations: 263.9 kB / 1.332 GB, free: 18.11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/1.094, allocations: 1.438 kB / 1.332 GB, free: 18.11 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002174/1.094, allocations: 152 kB / 1.333 GB, free: 18.03 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/1.095, allocations: 35.88 kB / 1.333 GB, free: 18.01 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008894/1.096, allocations: 0.4937 MB / 1.333 GB, free: 17.7 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00022/1.096, allocations: 0.7564 MB / 1.334 GB, free: 16.99 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.692e-05/1.096, allocations: 20.08 kB / 1.334 GB, free: 16.98 MB / 1.061 GB Notification: Performance of SimCode: time 7.41e-07/1.096, allocations: 0 / 1.334 GB, free: 16.98 MB / 1.061 GB Notification: Performance of Templates: time 0.006346/1.102, allocations: 2.983 MB / 1.337 GB, free: 16.67 MB / 1.061 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 -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] Reference file matches [Calling sys.exit(0), Time elapsed: 12.386345477993018]