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.001074/0.001074, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001556/0.001556, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 223.3 MB / 240 MB, free: 5.445 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.488/2.488, allocations: 390.9 MB / 0.666 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.0003982, allocations: 19.98 kB / 0.8153 GB, free: 13.57 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.886/0.8864, allocations: 142.4 MB / 0.9544 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002056/0.8885, allocations: 1.605 MB / 0.956 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.8896, allocations: 0.6696 MB / 0.9567 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.8897, allocations: 1.375 kB / 0.9567 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.8899, allocations: 70.02 kB / 0.9567 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.8901, allocations: 92 kB / 0.9568 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004682/0.8905, allocations: 131.9 kB / 0.9569 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.8908, allocations: 216.6 kB / 0.9571 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.8909, allocations: 54.95 kB / 0.9572 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.8911, allocations: 94.09 kB / 0.9573 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001808/0.8913, allocations: 113.7 kB / 0.9574 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.8913, allocations: 5.406 kB / 0.9574 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.8914, allocations: 74.06 kB / 0.9575 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.612e-05/0.8915, allocations: 51.41 kB / 0.9575 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.581e-05/0.8916, allocations: 61.89 kB / 0.9576 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.8918, allocations: 214 kB / 0.9578 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.8918, allocations: 0 / 0.9578 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.875e-06/0.8918, allocations: 0 / 0.9578 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.271e-05/0.8918, allocations: 0 / 0.9578 GB, free: 5.293 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.0007606/0.8926, allocations: 0.5555 MB / 0.9583 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.8927, allocations: 10.69 kB / 0.9583 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.833e-05/0.8927, allocations: 29.64 kB / 0.9584 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.8932, allocations: 302.9 kB / 0.9586 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.8932, allocations: 10.88 kB / 0.9587 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.662e-05/0.8933, allocations: 13.62 kB / 0.9587 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.8937, allocations: 227.1 kB / 0.9589 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.8937, allocations: 1.375 kB / 0.9589 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.8937, allocations: 5.375 kB / 0.9589 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.8937, allocations: 8.078 kB / 0.9589 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002501/0.894, allocations: 135 kB / 0.959 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007256/0.8947, allocations: 0.6774 MB / 0.9597 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003388/0.8951, allocations: 182.7 kB / 0.9599 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.8953, allocations: 103.2 kB / 0.96 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.8953, allocations: 0.875 kB / 0.96 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003292/0.8956, allocations: 173.3 kB / 0.9601 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.8956, allocations: 0 / 0.9601 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0007056/0.8963, allocations: 393.5 kB / 0.9605 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.8964, allocations: 131.9 kB / 0.9606 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002912/0.8967, allocations: 278.1 kB / 0.9609 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.8967, allocations: 36.28 kB / 0.9609 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.8968, allocations: 162 kB / 0.9611 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.441e-05/0.8969, allocations: 37.73 kB / 0.9611 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.02e-05/0.8969, allocations: 5.281 kB / 0.9611 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.677e-05/0.897, allocations: 338.3 kB / 0.9615 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.8971, allocations: 86.47 kB / 0.9615 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002004/0.8973, allocations: 140.1 kB / 0.9617 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.8975, allocations: 113.5 kB / 0.9618 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.8975, allocations: 3.938 kB / 0.9618 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004832/0.898, allocations: 341.5 kB / 0.9621 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.956e-05/0.8981, allocations: 37.69 kB / 0.9621 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.8981, allocations: 5.188 kB / 0.9621 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.8981, allocations: 5.984 kB / 0.9622 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.8982, allocations: 31.55 kB / 0.9622 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.8983, allocations: 6.094 kB / 0.9622 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.8984, allocations: 25.89 kB / 0.9622 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.8984, allocations: 5.656 kB / 0.9622 GB, free: 1.82 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.8986, allocations: 203 kB / 0.9624 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.079e-05/0.8986, allocations: 24.12 kB / 0.9624 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.187e-05/0.8987, allocations: 31.23 kB / 0.9625 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.8987, allocations: 1.375 kB / 0.9625 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.066e-06/0.8987, allocations: 5.125 kB / 0.9625 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.8987, allocations: 0 / 0.9625 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.899, allocations: 293.4 kB / 0.9628 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.899, allocations: 0 / 0.9628 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.8991, allocations: 22.58 kB / 0.9628 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.8991, allocations: 0.9688 kB / 0.9628 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.8991, allocations: 3.219 kB / 0.9628 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.8991, allocations: 0 / 0.9628 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.8992, allocations: 5.031 kB / 0.9628 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006503/0.8998, allocations: 477.5 kB / 0.9632 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.915e-05/0.8999, allocations: 106.4 kB / 0.9633 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.8999, allocations: 3.938 kB / 0.9633 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.9, allocations: 19.7 kB / 0.9634 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.144e-05/0.9001, allocations: 30.23 kB / 0.9634 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.9001, allocations: 8.797 kB / 0.9634 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001744/0.9003, allocations: 199.7 kB / 0.9636 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9003, allocations: 0 / 0.9636 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003068/0.9006, allocations: 62.98 kB / 0.9636 GB, free: 0.7734 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000211/0.9009, allocations: 132.6 kB / 0.9638 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004834/0.9013, allocations: 300.7 kB / 0.9641 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.9014, allocations: 5.375 kB / 0.9641 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002156/0.9016, allocations: 187.5 kB / 0.9642 GB, free: 388 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.9019, allocations: 43.06 kB / 0.9643 GB, free: 364 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.9029, allocations: 0.5128 MB / 0.9648 GB, free: 8 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.9034, allocations: 0.7566 MB / 0.9655 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.612e-05/0.9035, allocations: 18.3 kB / 0.9655 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.781e-05/0.9036, allocations: 21.06 kB / 0.9656 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of SimCode: time 4.31e-07/0.9036, allocations: 0 / 0.9656 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of Templates: time 0.006664/0.9102, allocations: 2.448 MB / 0.968 GB, free: 14.05 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/jenkins/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