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.001386/0.001386, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.001353/0.001353, allocations: 190.9 kB / 17.31 MB, free: 5.613 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.38/1.38, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.399/2.399, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 65.12 kB / 0.814 GB, free: 32.63 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2916, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00337/0.295, allocations: 1.962 MB / 0.953 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001243/0.2963, allocations: 0.7207 MB / 0.9537 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.2964, allocations: 4 kB / 0.9537 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.2966, allocations: 79.64 kB / 0.9538 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.2968, allocations: 95.56 kB / 0.9539 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005608/0.2974, allocations: 179.7 kB / 0.9541 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003151/0.2977, allocations: 275.4 kB / 0.9543 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.2979, allocations: 73.81 kB / 0.9544 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.298, allocations: 107.7 kB / 0.9545 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.2982, allocations: 155.5 kB / 0.9547 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.735e-05/0.2983, allocations: 23.94 kB / 0.9547 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/0.2985, allocations: 91.94 kB / 0.9548 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.489e-05/0.2986, allocations: 55.77 kB / 0.9548 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.2987, allocations: 103.4 kB / 0.9549 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.299, allocations: 311 kB / 0.9552 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2991, allocations: 0 / 0.9552 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.126e-06/0.2991, allocations: 3.984 kB / 0.9552 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.107e-06/0.2991, allocations: 0 / 0.9552 GB, free: 3.828 MB / 0.7325 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.0008196/0.2999, allocations: 0.5741 MB / 0.9558 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.2999, allocations: 12.03 kB / 0.9558 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.055e-05/0.3, allocations: 32.64 kB / 0.9558 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.3005, allocations: 302.8 kB / 0.9561 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.3005, allocations: 12.38 kB / 0.9561 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.3006, allocations: 12.38 kB / 0.9561 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004305/0.301, allocations: 231.2 kB / 0.9564 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.301, allocations: 0 / 0.9564 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.301, allocations: 4 kB / 0.9564 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.3011, allocations: 4 kB / 0.9564 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002601/0.3013, allocations: 136.3 kB / 0.9565 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008354/0.3022, allocations: 0.6769 MB / 0.9572 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003505/0.3025, allocations: 166.4 kB / 0.9573 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.3027, allocations: 105 kB / 0.9574 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.3027, allocations: 0 / 0.9574 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000272/0.303, allocations: 176.9 kB / 0.9576 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.303, allocations: 0 / 0.9576 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0007143/0.3037, allocations: 378.9 kB / 0.9579 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.371e-05/0.3038, allocations: 132.5 kB / 0.9581 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.3042, allocations: 278.7 kB / 0.9583 GB, free: 384 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.958e-05/0.3042, allocations: 33.7 kB / 0.9584 GB, free: 344 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.3044, allocations: 156.1 kB / 0.9585 GB, free: 184 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.032e-05/0.3044, allocations: 47.44 kB / 0.9586 GB, free: 136 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.918e-05/0.3045, allocations: 37.7 kB / 0.9586 GB, free: 92 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3046, allocations: 342.8 kB / 0.9589 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.3048, allocations: 91.89 kB / 0.959 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.305, allocations: 133.3 kB / 0.9591 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.3053, allocations: 245.6 kB / 0.9594 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3054, allocations: 0 / 0.9594 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004867/0.3058, allocations: 339 kB / 0.9597 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/0.3059, allocations: 37.69 kB / 0.9597 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3059, allocations: 4 kB / 0.9597 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3059, allocations: 0 / 0.9597 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.3061, allocations: 32.08 kB / 0.9598 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3061, allocations: 3.938 kB / 0.9598 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.3062, allocations: 23.83 kB / 0.9598 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.3062, allocations: 4 kB / 0.9598 GB, free: 14.8 MB / 0.7481 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.0001694/0.3064, allocations: 200.8 kB / 0.96 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.09e-05/0.3065, allocations: 27.72 kB / 0.96 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.075e-05/0.3065, allocations: 29.83 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.3065, allocations: 4 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.3066, allocations: 0 / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3066, allocations: 0 / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.3068, allocations: 285.5 kB / 0.9603 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3068, allocations: 3.938 kB / 0.9603 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.307, allocations: 19.94 kB / 0.9603 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.307, allocations: 3.984 kB / 0.9604 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.307, allocations: 4 kB / 0.9604 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.307, allocations: 0 / 0.9604 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.307, allocations: 4 kB / 0.9604 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007042/0.3077, allocations: 472.8 kB / 0.9608 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 7.39e-05/0.3078, allocations: 100.9 kB / 0.9609 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.088e-05/0.3078, allocations: 4 kB / 0.9609 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.308, allocations: 24.09 kB / 0.9609 GB, free: 13.54 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.805e-05/0.308, allocations: 19.97 kB / 0.961 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.3081, allocations: 15.98 kB / 0.961 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001891/0.3083, allocations: 202 kB / 0.9612 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3083, allocations: 0 / 0.9612 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002763/0.3086, allocations: 55.94 kB / 0.9612 GB, free: 13.26 MB / 0.7481 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.0002165/0.3088, allocations: 139 kB / 0.9613 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005285/0.3093, allocations: 299.4 kB / 0.9616 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3093, allocations: 0 / 0.9616 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002319/0.3096, allocations: 183.3 kB / 0.9618 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.3099, allocations: 32.55 kB / 0.9618 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009393/0.3108, allocations: 481.1 kB / 0.9623 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.3111, allocations: 0.7475 MB / 0.963 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.584e-05/0.3112, allocations: 17.55 kB / 0.963 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.689e-05/0.3113, allocations: 19.44 kB / 0.9631 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of SimCode: time 3.21e-07/0.3113, allocations: 0 / 0.9631 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of Templates: time 0.006536/0.3178, allocations: 2.837 MB / 0.9658 GB, free: 8.457 MB / 0.7481 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 -s gbode -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