Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 92.7 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 175.8 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.374/2.374, allocations: 390.9 MB / 0.667 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.0003736, allocations: 8 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6984/0.6988, allocations: 142.4 MB / 0.9557 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002009/0.7009, allocations: 1.65 MB / 0.9573 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001172/0.7021, allocations: 0.7099 MB / 0.958 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.7022, allocations: 6.75 kB / 0.958 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.7024, allocations: 69.92 kB / 0.9581 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.7025, allocations: 96.48 kB / 0.9582 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005184/0.7031, allocations: 144.1 kB / 0.9583 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002463/0.7033, allocations: 244.7 kB / 0.9586 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.7035, allocations: 69.69 kB / 0.9586 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.7036, allocations: 86.02 kB / 0.9587 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.7038, allocations: 136.5 kB / 0.9588 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.529e-05/0.7038, allocations: 5.75 kB / 0.9588 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.704, allocations: 78.31 kB / 0.9589 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.202e-05/0.7041, allocations: 47.09 kB / 0.959 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.002e-05/0.7042, allocations: 109.6 kB / 0.9591 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002104/0.7044, allocations: 218.8 kB / 0.9593 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.7044, allocations: 0 / 0.9593 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7044, allocations: 0 / 0.9593 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.7044, allocations: 1.688 kB / 0.9593 GB, free: 4.98 MB / 0.7169 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.0006879/0.7051, allocations: 0.5456 MB / 0.9598 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.7051, allocations: 9.219 kB / 0.9598 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.434e-05/0.7052, allocations: 35.81 kB / 0.9598 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.7056, allocations: 307 kB / 0.9601 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.7056, allocations: 11.25 kB / 0.9601 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.86e-05/0.7057, allocations: 14 kB / 0.9602 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003888/0.7061, allocations: 238 kB / 0.9604 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.7061, allocations: 3.938 kB / 0.9604 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.7061, allocations: 5.375 kB / 0.9604 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.7061, allocations: 4.125 kB / 0.9604 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002553/0.7064, allocations: 140.3 kB / 0.9605 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007351/0.7071, allocations: 0.6814 MB / 0.9612 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003679/0.7075, allocations: 183.7 kB / 0.9614 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.7077, allocations: 102.7 kB / 0.9615 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.7077, allocations: 1.094 kB / 0.9615 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003118/0.7081, allocations: 174.3 kB / 0.9616 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.7081, allocations: 4 kB / 0.9616 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0007188/0.7088, allocations: 387.8 kB / 0.962 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.7089, allocations: 131.8 kB / 0.9621 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.7091, allocations: 280.1 kB / 0.9624 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.7092, allocations: 37.08 kB / 0.9624 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.003e-05/0.7093, allocations: 153.9 kB / 0.9626 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.648e-05/0.7093, allocations: 46.47 kB / 0.9626 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.722e-05/0.7093, allocations: 24.17 kB / 0.9627 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.877e-05/0.7094, allocations: 338.8 kB / 0.963 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.7096, allocations: 94.89 kB / 0.9631 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.7098, allocations: 135.7 kB / 0.9632 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003209/0.7101, allocations: 253.4 kB / 0.9634 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.7102, allocations: 0 / 0.9634 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005345/0.7107, allocations: 350.6 kB / 0.9638 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/0.7107, allocations: 38.91 kB / 0.9638 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.7108, allocations: 1.125 kB / 0.9638 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.7108, allocations: 1.031 kB / 0.9638 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.7109, allocations: 27.48 kB / 0.9638 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.7109, allocations: 6.312 kB / 0.9638 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.7111, allocations: 29.83 kB / 0.9639 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.7111, allocations: 6.344 kB / 0.9639 GB, free: 1.379 MB / 0.7169 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.0001504/0.7112, allocations: 198.9 kB / 0.9641 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.024e-05/0.7113, allocations: 25.34 kB / 0.9641 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.385e-05/0.7113, allocations: 27.75 kB / 0.9641 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.7114, allocations: 1.531 kB / 0.9641 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.7114, allocations: 7.922 kB / 0.9641 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.7114, allocations: 0 / 0.9641 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000222/0.7116, allocations: 289.9 kB / 0.9644 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.7116, allocations: 3.938 kB / 0.9644 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.7117, allocations: 18.53 kB / 0.9644 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.7117, allocations: 1.25 kB / 0.9644 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.7118, allocations: 10.64 kB / 0.9644 GB, free: 0.8711 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.7118, allocations: 5.312 kB / 0.9644 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.7118, allocations: 0 / 0.9644 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006548/0.7124, allocations: 480.8 kB / 0.9649 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.7125, allocations: 99.16 kB / 0.965 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.977e-05/0.7125, allocations: 7.469 kB / 0.965 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.7126, allocations: 19.52 kB / 0.965 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.413e-05/0.7127, allocations: 26.98 kB / 0.965 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.7128, allocations: 12.73 kB / 0.9651 GB, free: 484 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001611/0.7129, allocations: 197.3 kB / 0.9652 GB, free: 356 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7129, allocations: 0 / 0.9652 GB, free: 356 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003101/0.7132, allocations: 54.78 kB / 0.9653 GB, free: 348 kB / 0.7169 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.0002004/0.7134, allocations: 137.6 kB / 0.9654 GB, free: 236 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004812/0.7139, allocations: 304.6 kB / 0.9657 GB, free: 64 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/0.714, allocations: 0.75 kB / 0.9657 GB, free: 64 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002629/0.7142, allocations: 188.8 kB / 0.9659 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.7146, allocations: 35.86 kB / 0.9659 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.7157, allocations: 0.5695 MB / 0.9665 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.716, allocations: 0.7528 MB / 0.9672 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.374e-05/0.7161, allocations: 16.75 kB / 0.9672 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of SimCode: time 2.525e-06/0.7161, allocations: 0 / 0.9672 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of Templates: time 0.005975/0.7221, allocations: 2.959 MB / 0.9701 GB, free: 13.27 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches