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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001569/0.001569, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002273/0.002273, allocations: 189.7 kB / 16.13 MB, free: 6.645 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.428/1.428, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.593/2.593, allocations: 390.2 MB / 0.6642 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 67.89 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8845/0.8863, allocations: 140.4 MB / 0.9489 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003378/0.8897, allocations: 2.006 MB / 0.9509 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.8912, allocations: 0.7236 MB / 0.9516 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002104/0.8914, allocations: 10.69 kB / 0.9516 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002661/0.8917, allocations: 70.14 kB / 0.9517 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.8919, allocations: 84.88 kB / 0.9517 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008164/0.8927, allocations: 158.8 kB / 0.9519 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005668/0.8933, allocations: 245.6 kB / 0.9521 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002169/0.8935, allocations: 69.59 kB / 0.9522 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002205/0.8937, allocations: 99.56 kB / 0.9523 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.894, allocations: 139 kB / 0.9524 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.691e-05/0.8941, allocations: 9.594 kB / 0.9524 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002199/0.8943, allocations: 85.48 kB / 0.9525 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.8944, allocations: 46.86 kB / 0.9525 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.8946, allocations: 97.94 kB / 0.9526 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004456/0.895, allocations: 287.5 kB / 0.9529 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.8951, allocations: 0 / 0.9529 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.213e-06/0.8951, allocations: 1.344 kB / 0.9529 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.8951, allocations: 0 / 0.9529 GB, free: 6.168 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.00101/0.8961, allocations: 0.5896 MB / 0.9535 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.8961, allocations: 8.938 kB / 0.9535 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.8963, allocations: 26.66 kB / 0.9535 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004488/0.8967, allocations: 300.3 kB / 0.9538 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.8967, allocations: 10.75 kB / 0.9538 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.133e-05/0.8968, allocations: 14.81 kB / 0.9538 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004406/0.8972, allocations: 229.2 kB / 0.9541 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.8973, allocations: 0 / 0.9541 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.586e-05/0.8973, allocations: 6.531 kB / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.8973, allocations: 2.875 kB / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002781/0.8976, allocations: 130.9 kB / 0.9542 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008485/0.8985, allocations: 0.6756 MB / 0.9548 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003614/0.8988, allocations: 170.7 kB / 0.955 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001767/0.899, allocations: 103.8 kB / 0.9551 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.899, allocations: 1.125 kB / 0.9551 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003388/0.8994, allocations: 174.8 kB / 0.9553 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.783e-06/0.8994, allocations: 0 / 0.9553 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0006815/0.9001, allocations: 376.6 kB / 0.9556 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.9002, allocations: 131.7 kB / 0.9558 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002794/0.9004, allocations: 279.8 kB / 0.956 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.9005, allocations: 28.86 kB / 0.9561 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.9006, allocations: 167.2 kB / 0.9562 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.196e-05/0.9006, allocations: 42.02 kB / 0.9563 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.926e-05/0.9007, allocations: 44.23 kB / 0.9563 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.138e-05/0.9008, allocations: 338 kB / 0.9566 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.901, allocations: 91.95 kB / 0.9567 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.9012, allocations: 132 kB / 0.9568 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/0.9015, allocations: 245.5 kB / 0.9571 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.9016, allocations: 1.156 kB / 0.9571 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006068/0.9022, allocations: 340.1 kB / 0.9574 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/0.9022, allocations: 36.56 kB / 0.9574 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.9022, allocations: 1.312 kB / 0.9574 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.9022, allocations: 1.281 kB / 0.9574 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.9024, allocations: 29.89 kB / 0.9575 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.9024, allocations: 2.188 kB / 0.9575 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.9026, allocations: 22.27 kB / 0.9575 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.9026, allocations: 5.875 kB / 0.9575 GB, free: 2.543 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.0001755/0.9028, allocations: 202.1 kB / 0.9577 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.9028, allocations: 24.59 kB / 0.9577 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.472e-05/0.9029, allocations: 28.83 kB / 0.9577 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.9029, allocations: 0 / 0.9577 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.9029, allocations: 1.875 kB / 0.9577 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.9029, allocations: 0 / 0.9577 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000261/0.9032, allocations: 289 kB / 0.958 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.9032, allocations: 4 kB / 0.958 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.9033, allocations: 20.33 kB / 0.958 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.9033, allocations: 5.094 kB / 0.958 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.9033, allocations: 7.344 kB / 0.958 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.9033, allocations: 0 / 0.958 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.9034, allocations: 1 kB / 0.958 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007794/0.9041, allocations: 473.6 kB / 0.9585 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.785e-05/0.9042, allocations: 98.48 kB / 0.9586 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.34e-05/0.9043, allocations: 8.656 kB / 0.9586 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.9044, allocations: 20.42 kB / 0.9586 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.9045, allocations: 25.8 kB / 0.9586 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.084e-05/0.9045, allocations: 4.719 kB / 0.9586 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002212/0.9048, allocations: 205 kB / 0.9588 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9048, allocations: 0 / 0.9588 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003606/0.9051, allocations: 52.12 kB / 0.9589 GB, free: 1.504 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.0002342/0.9054, allocations: 139.5 kB / 0.959 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005322/0.9059, allocations: 287.9 kB / 0.9593 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.9059, allocations: 3.938 kB / 0.9593 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002527/0.9062, allocations: 185.6 kB / 0.9595 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.9066, allocations: 29.98 kB / 0.9595 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.9079, allocations: 0.5329 MB / 0.96 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.9082, allocations: 0.7453 MB / 0.9608 GB, free: 4 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001383/0.9084, allocations: 22.61 kB / 0.9608 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.834e-05/0.9084, allocations: 16.66 kB / 0.9608 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.9084, allocations: 0 / 0.9608 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of Templates: time 0.008576/0.917, allocations: 2.552 MB / 0.9633 GB, free: 14.73 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