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.000965/0.0009653, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009642/0.0009642, allocations: 177.3 kB / 15.94 MB, free: 228 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.519/1.519, allocations: 223.2 MB / 239.9 MB, free: 5.332 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.527/2.527, allocations: 390.3 MB / 0.6653 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.000355, allocations: 8 kB / 0.8145 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7886/0.789, allocations: 142.3 MB / 0.9535 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00206/0.7911, allocations: 1.602 MB / 0.9551 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001046/0.7921, allocations: 0.6523 MB / 0.9557 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.7923, allocations: 6.156 kB / 0.9557 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.7924, allocations: 73.33 kB / 0.9558 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.7926, allocations: 81.17 kB / 0.9559 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004766/0.7931, allocations: 125.9 kB / 0.956 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002421/0.7933, allocations: 159.1 kB / 0.9561 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.7935, allocations: 54.55 kB / 0.9562 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.7936, allocations: 95.88 kB / 0.9563 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.7938, allocations: 112.3 kB / 0.9564 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.569e-05/0.7938, allocations: 5.438 kB / 0.9564 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.7939, allocations: 67.03 kB / 0.9565 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.084e-05/0.794, allocations: 43.39 kB / 0.9565 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.462e-05/0.7941, allocations: 62.61 kB / 0.9566 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.7943, allocations: 224.5 kB / 0.9568 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.7943, allocations: 0 / 0.9568 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.733e-06/0.7943, allocations: 0 / 0.9568 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.7943, allocations: 4 kB / 0.9568 GB, free: 5.543 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.0007234/0.795, allocations: 0.5406 MB / 0.9573 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.7951, allocations: 13.81 kB / 0.9573 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.877e-05/0.7952, allocations: 33.2 kB / 0.9573 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003929/0.7956, allocations: 296.3 kB / 0.9576 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.7956, allocations: 9.75 kB / 0.9576 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.7956, allocations: 13.75 kB / 0.9577 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.796, allocations: 231.2 kB / 0.9579 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.796, allocations: 0 / 0.9579 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.796, allocations: 5.562 kB / 0.9579 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.796, allocations: 8.672 kB / 0.9579 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002399/0.7963, allocations: 134.3 kB / 0.958 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007406/0.797, allocations: 0.6888 MB / 0.9587 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.7974, allocations: 173.8 kB / 0.9589 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.7974, allocations: 5.516 kB / 0.9589 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002998/0.7977, allocations: 168.9 kB / 0.959 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.442e-06/0.7977, allocations: 0 / 0.959 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0007198/0.7985, allocations: 472 kB / 0.9595 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.7985, allocations: 140.5 kB / 0.9596 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002805/0.7988, allocations: 278 kB / 0.9599 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.7988, allocations: 36.39 kB / 0.9599 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.799, allocations: 161.9 kB / 0.9601 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.42e-05/0.799, allocations: 42.33 kB / 0.9601 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.909e-06/0.799, allocations: 1.469 kB / 0.9601 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.558e-05/0.7991, allocations: 341.6 kB / 0.9604 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.7993, allocations: 91.14 kB / 0.9605 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.7994, allocations: 134.7 kB / 0.9606 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/0.7996, allocations: 113 kB / 0.9608 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.7996, allocations: 8.016 kB / 0.9608 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004929/0.8001, allocations: 339.3 kB / 0.9611 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.814e-05/0.8002, allocations: 38.5 kB / 0.9611 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.8002, allocations: 0 / 0.9611 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.8002, allocations: 2.25 kB / 0.9611 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.8003, allocations: 27.92 kB / 0.9611 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.8004, allocations: 4.969 kB / 0.9612 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.8005, allocations: 30.77 kB / 0.9612 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.8005, allocations: 6.062 kB / 0.9612 GB, free: 2.027 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.0001498/0.8007, allocations: 189.7 kB / 0.9614 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.8007, allocations: 29.41 kB / 0.9614 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.938e-05/0.8008, allocations: 31.02 kB / 0.9614 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.8008, allocations: 1.812 kB / 0.9614 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.8008, allocations: 0 / 0.9614 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.8008, allocations: 0 / 0.9614 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.801, allocations: 298.1 kB / 0.9617 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.801, allocations: 0 / 0.9617 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.8011, allocations: 26.11 kB / 0.9617 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.8011, allocations: 1.156 kB / 0.9617 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.8012, allocations: 6.5 kB / 0.9617 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.8012, allocations: 5.188 kB / 0.9617 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.8012, allocations: 0 / 0.9617 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007013/0.8019, allocations: 481 kB / 0.9622 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.7e-05/0.8019, allocations: 98.77 kB / 0.9623 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.174e-05/0.802, allocations: 8 kB / 0.9623 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.8021, allocations: 16.42 kB / 0.9623 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.12e-05/0.8022, allocations: 33.03 kB / 0.9624 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.8022, allocations: 8.938 kB / 0.9624 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001736/0.8024, allocations: 200.3 kB / 0.9626 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8024, allocations: 0 / 0.9626 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002995/0.8027, allocations: 62.78 kB / 0.9626 GB, free: 0.9766 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.0002114/0.8029, allocations: 124.2 kB / 0.9627 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004769/0.8034, allocations: 307.3 kB / 0.963 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.8034, allocations: 5.438 kB / 0.963 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002179/0.8037, allocations: 191.4 kB / 0.9632 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.8039, allocations: 30.19 kB / 0.9632 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009296/0.8049, allocations: 0.5112 MB / 0.9637 GB, free: 224 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.8052, allocations: 0.7594 MB / 0.9645 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.958e-05/0.8053, allocations: 21.41 kB / 0.9645 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.412e-05/0.8053, allocations: 16 kB / 0.9645 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.8053, allocations: 1.031 kB / 0.9645 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of Templates: time 0.006436/0.8118, allocations: 2.447 MB / 0.9669 GB, free: 14.25 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","../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches