Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 99.55 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.0009623/0.0009623, 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.507/1.507, allocations: 223.2 MB / 239.9 MB, free: 5.457 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.397/2.397, allocations: 390.3 MB / 0.6653 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004169/0.0004169, allocations: 8 kB / 0.8145 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8685/0.869, allocations: 142.3 MB / 0.9535 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003031/0.8721, allocations: 2.095 MB / 0.9556 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.8732, allocations: 0.7107 MB / 0.9563 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.586e-05/0.8733, allocations: 7.156 kB / 0.9563 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.8735, allocations: 26.06 kB / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002653/0.8738, allocations: 62.95 kB / 0.9563 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003014/0.8741, allocations: 82.28 kB / 0.9564 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001973/0.8743, allocations: 114 kB / 0.9565 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003076/0.8746, allocations: 182.6 kB / 0.9567 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.697e-05/0.8747, allocations: 45.78 kB / 0.9567 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.8749, allocations: 62.86 kB / 0.9568 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.8749, allocations: 7 kB / 0.9568 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.875, allocations: 54.12 kB / 0.9569 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.275e-05/0.8751, allocations: 46.56 kB / 0.9569 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.342e-05/0.8752, allocations: 50.11 kB / 0.957 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.8754, allocations: 160.3 kB / 0.9571 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.8754, allocations: 0 / 0.9571 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.046e-06/0.8754, allocations: 1.125 kB / 0.9571 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.217e-06/0.8754, allocations: 0 / 0.9571 GB, free: 5.316 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0005513/0.876, allocations: 433.1 kB / 0.9575 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.876, allocations: 9.219 kB / 0.9575 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004118/0.8764, allocations: 53.47 kB / 0.9576 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.8766, allocations: 210.5 kB / 0.9578 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.8767, allocations: 8.406 kB / 0.9578 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.8767, allocations: 13.81 kB / 0.9578 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003374/0.877, allocations: 230.7 kB / 0.958 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.8771, allocations: 0 / 0.958 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.8771, allocations: 5.75 kB / 0.958 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-05/0.8771, allocations: 24.81 kB / 0.9581 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002177/0.8774, allocations: 140.9 kB / 0.9582 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009107/0.8783, allocations: 1.127 MB / 0.9593 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.483e-05/0.8784, allocations: 49.03 kB / 0.9593 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.8784, allocations: 3.984 kB / 0.9593 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.8784, allocations: 31.81 kB / 0.9594 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.223e-06/0.8784, allocations: 0 / 0.9594 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001945/0.8786, allocations: 75.38 kB / 0.9594 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.8786, allocations: 56.42 kB / 0.9595 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.8788, allocations: 173.2 kB / 0.9597 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.494e-06/0.8788, allocations: 25.7 kB / 0.9597 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.427e-05/0.8789, allocations: 144.2 kB / 0.9598 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.8789, allocations: 14.19 kB / 0.9598 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-06/0.8789, allocations: 1.031 kB / 0.9598 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.726e-05/0.879, allocations: 321 kB / 0.9601 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.898e-05/0.879, allocations: 23.7 kB / 0.9602 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.21e-05/0.8791, allocations: 89.75 kB / 0.9603 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.278e-05/0.8792, allocations: 41.03 kB / 0.9603 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.8792, allocations: 5.75 kB / 0.9603 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001777/0.8794, allocations: 127.4 kB / 0.9604 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002311/0.8796, allocations: 0.9632 MB / 0.9614 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.8796, allocations: 4.344 kB / 0.9614 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.8796, allocations: 5.875 kB / 0.9614 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.8798, allocations: 25.2 kB / 0.9614 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.8798, allocations: 6.75 kB / 0.9614 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.267e-05/0.8799, allocations: 17.56 kB / 0.9614 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.8799, allocations: 5.875 kB / 0.9614 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.147e-06/0.8799, allocations: 3.125 kB / 0.9614 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001473/0.88, allocations: 96.84 kB / 0.9615 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.8801, allocations: 10.39 kB / 0.9615 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.841e-06/0.8801, allocations: 3.406 kB / 0.9615 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.598e-05/0.8801, allocations: 20.34 kB / 0.9616 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.8802, allocations: 10.64 kB / 0.9616 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.509e-05/0.8802, allocations: 21.34 kB / 0.9616 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.8802, allocations: 9.484 kB / 0.9616 GB, free: 1.023 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 9.609e-05/0.8803, allocations: 213.4 kB / 0.9618 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.709e-05/0.8804, allocations: 12.03 kB / 0.9618 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.007e-05/0.8804, allocations: 17.06 kB / 0.9618 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.8804, allocations: 0 / 0.9618 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.8804, allocations: 5.328 kB / 0.9618 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.8804, allocations: 0 / 0.9618 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003386/0.8808, allocations: 465.5 kB / 0.9623 GB, free: 332 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.8808, allocations: 5.5 kB / 0.9623 GB, free: 328 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.38e-05/0.8808, allocations: 9.484 kB / 0.9623 GB, free: 324 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.8808, allocations: 5.328 kB / 0.9623 GB, free: 320 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.8808, allocations: 1.375 kB / 0.9623 GB, free: 320 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.8809, allocations: 1.375 kB / 0.9623 GB, free: 320 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.8809, allocations: 1.375 kB / 0.9623 GB, free: 320 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001147/0.881, allocations: 149.4 kB / 0.9624 GB, free: 148 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.51e-05/0.881, allocations: 93.03 kB / 0.9625 GB, free: 40 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/0.8811, allocations: 1.375 kB / 0.9625 GB, free: 40 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.337e-05/0.8811, allocations: 1.375 kB / 0.9625 GB, free: 40 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.695e-05/0.8811, allocations: 11.06 kB / 0.9625 GB, free: 32 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.8811, allocations: 5.375 kB / 0.9625 GB, free: 28 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001358/0.8813, allocations: 129.6 kB / 0.9627 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8813, allocations: 1.375 kB / 0.9627 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003492/0.8816, allocations: 51.72 kB / 0.9627 GB, free: 15.91 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0001245/0.8818, allocations: 99.69 kB / 0.9628 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002243/0.882, allocations: 115 kB / 0.9629 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.882, allocations: 1.188 kB / 0.9629 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.999e-05/0.882, allocations: 21.58 kB / 0.9629 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.8823, allocations: 13 kB / 0.963 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005555/0.8828, allocations: 320.6 kB / 0.9633 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.8832, allocations: 0.7385 MB / 0.964 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.617e-05/0.8833, allocations: 23.53 kB / 0.964 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.8833, allocations: 12.34 kB / 0.964 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.8833, allocations: 4.719 kB / 0.964 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of Templates: time 0.003315/0.8866, allocations: 0.7904 MB / 0.9648 GB, free: 14.34 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches