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.007457/0.007457, allocations: 101.7 kB / 15.88 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 192.4 kB / 16.79 MB, free: 5.809 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.374/1.374, allocations: 222.9 MB / 240.5 MB, free: 4.547 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.423/2.423, allocations: 390.2 MB / 0.6649 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 71.88 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7076/0.7091, allocations: 140.4 MB / 0.9496 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003779/0.7129, allocations: 2.006 MB / 0.9515 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00127/0.7142, allocations: 0.7191 MB / 0.9522 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.7144, allocations: 2.969 kB / 0.9522 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002456/0.7146, allocations: 73.8 kB / 0.9523 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.7148, allocations: 80.89 kB / 0.9524 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005176/0.7153, allocations: 158.9 kB / 0.9525 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.7156, allocations: 244.6 kB / 0.9528 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.7158, allocations: 73.98 kB / 0.9528 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.7159, allocations: 104.5 kB / 0.9529 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001808/0.7161, allocations: 137.7 kB / 0.9531 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.498e-05/0.7161, allocations: 9.406 kB / 0.9531 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.7163, allocations: 78.72 kB / 0.9532 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.631e-05/0.7163, allocations: 50.61 kB / 0.9532 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.2e-05/0.7164, allocations: 101.5 kB / 0.9533 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002094/0.7167, allocations: 215.4 kB / 0.9535 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.7167, allocations: 7.938 kB / 0.9535 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.31e-07/0.7167, allocations: 4 kB / 0.9535 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.7167, allocations: 0 / 0.9535 GB, free: 6.176 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.0008153/0.7175, allocations: 0.5844 MB / 0.9541 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.7176, allocations: 8.875 kB / 0.9541 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.541e-05/0.7176, allocations: 27.94 kB / 0.9541 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003821/0.718, allocations: 299.8 kB / 0.9544 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.7181, allocations: 15.62 kB / 0.9544 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.7181, allocations: 13.69 kB / 0.9544 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003814/0.7185, allocations: 221 kB / 0.9547 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.7185, allocations: 4 kB / 0.9547 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.7185, allocations: 6.844 kB / 0.9547 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.7186, allocations: 2.719 kB / 0.9547 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.7188, allocations: 137.7 kB / 0.9548 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007404/0.7196, allocations: 0.6784 MB / 0.9555 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.7199, allocations: 175.8 kB / 0.9556 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.7201, allocations: 98.89 kB / 0.9557 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.7201, allocations: 1.188 kB / 0.9557 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003454/0.7205, allocations: 166.9 kB / 0.9559 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.7205, allocations: 0 / 0.9559 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0006903/0.7212, allocations: 380.6 kB / 0.9562 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.7213, allocations: 140.2 kB / 0.9564 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.7215, allocations: 274.2 kB / 0.9566 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.7215, allocations: 32.42 kB / 0.9567 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.515e-05/0.7216, allocations: 155.4 kB / 0.9568 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.547e-05/0.7217, allocations: 41.61 kB / 0.9569 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.926e-05/0.7217, allocations: 40.8 kB / 0.9569 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.26e-05/0.7218, allocations: 342.5 kB / 0.9572 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.722, allocations: 91.48 kB / 0.9573 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.7221, allocations: 128 kB / 0.9574 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003412/0.7225, allocations: 244.4 kB / 0.9577 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.7225, allocations: 5.312 kB / 0.9577 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004959/0.723, allocations: 335.3 kB / 0.958 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.28e-05/0.7231, allocations: 41.78 kB / 0.958 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.7231, allocations: 0.5938 kB / 0.958 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.7231, allocations: 6.594 kB / 0.958 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.7232, allocations: 21.08 kB / 0.9581 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.7233, allocations: 6.469 kB / 0.9581 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.7234, allocations: 21.98 kB / 0.9581 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.7234, allocations: 13.44 kB / 0.9581 GB, free: 2.547 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.0001584/0.7236, allocations: 194.8 kB / 0.9583 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.47e-05/0.7236, allocations: 28.73 kB / 0.9583 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.994e-05/0.7237, allocations: 27.34 kB / 0.9583 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.7237, allocations: 1.469 kB / 0.9583 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.7237, allocations: 3.984 kB / 0.9583 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.7237, allocations: 0 / 0.9583 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/0.7239, allocations: 285.9 kB / 0.9586 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.7239, allocations: 5.516 kB / 0.9586 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.761e-05/0.724, allocations: 15.56 kB / 0.9586 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.7241, allocations: 0 / 0.9586 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.7241, allocations: 7.484 kB / 0.9586 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.7241, allocations: 0.7812 kB / 0.9586 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.7241, allocations: 4 kB / 0.9586 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007368/0.7248, allocations: 471.2 kB / 0.9591 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.371e-05/0.7249, allocations: 98.31 kB / 0.9592 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.394e-05/0.7249, allocations: 8.125 kB / 0.9592 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.7251, allocations: 12.23 kB / 0.9592 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.016e-05/0.7251, allocations: 37.59 kB / 0.9592 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.33e-05/0.7252, allocations: 8.172 kB / 0.9593 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001761/0.7254, allocations: 202.1 kB / 0.9594 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7254, allocations: 0 / 0.9594 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003053/0.7257, allocations: 51.34 kB / 0.9595 GB, free: 1.516 MB / 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.0002006/0.7259, allocations: 140.2 kB / 0.9596 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004706/0.7264, allocations: 293.7 kB / 0.9599 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.7264, allocations: 1.094 kB / 0.9599 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002347/0.7266, allocations: 184.2 kB / 0.9601 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.7269, allocations: 36.28 kB / 0.9601 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.7279, allocations: 0.5543 MB / 0.9607 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.7282, allocations: 0.7525 MB / 0.9614 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.297e-05/0.7282, allocations: 20.95 kB / 0.9614 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/0.7282, allocations: 1.281 kB / 0.9614 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of Templates: time 0.005349/0.7336, allocations: 2.998 MB / 0.9643 GB, free: 14.41 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