Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001506, 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.001861/0.001861, 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.445/1.445, allocations: 223.2 MB / 239.9 MB, free: 5.336 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.583/2.583, allocations: 390.3 MB / 0.6653 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005727/0.0005727, allocations: 8 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8749/0.8755, allocations: 142.3 MB / 0.9535 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.00302/0.8786, allocations: 2.587 MB / 0.956 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001638/0.8802, allocations: 1.222 MB / 0.9572 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.8804, allocations: 11.09 kB / 0.9572 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.8805, allocations: 39.72 kB / 0.9573 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.8808, allocations: 94.69 kB / 0.9574 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.8811, allocations: 99.67 kB / 0.9575 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000232/0.8814, allocations: 170.2 kB / 0.9576 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002673/0.8816, allocations: 211.7 kB / 0.9578 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.79e-05/0.8817, allocations: 81.14 kB / 0.9579 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.882, allocations: 95 kB / 0.958 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.882, allocations: 9.938 kB / 0.958 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.8822, allocations: 83.36 kB / 0.9581 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.487e-05/0.8823, allocations: 65.58 kB / 0.9581 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.437e-05/0.8823, allocations: 66.61 kB / 0.9582 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.8826, allocations: 241.2 kB / 0.9584 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.8826, allocations: 0 / 0.9584 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.052e-06/0.8826, allocations: 1.375 kB / 0.9584 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.8826, allocations: 0 / 0.9584 GB, free: 4.301 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006261/0.8832, allocations: 0.4917 MB / 0.9589 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.8833, allocations: 9.625 kB / 0.9589 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005681/0.8838, allocations: 85.14 kB / 0.959 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.8841, allocations: 237.2 kB / 0.9592 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.8841, allocations: 20.08 kB / 0.9593 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.8842, allocations: 23.48 kB / 0.9593 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.8846, allocations: 295.2 kB / 0.9596 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.8846, allocations: 3.953 kB / 0.9596 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.8846, allocations: 10.59 kB / 0.9596 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.62e-05/0.8847, allocations: 13.56 kB / 0.9596 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002796/0.885, allocations: 203.5 kB / 0.9598 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.8861, allocations: 1.463 MB / 0.9612 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002028/0.8863, allocations: 171.7 kB / 0.9614 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.744e-06/0.8863, allocations: 1.375 kB / 0.9614 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.8864, allocations: 35.92 kB / 0.9614 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.944e-06/0.8864, allocations: 4.031 kB / 0.9614 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003889/0.8868, allocations: 228.9 kB / 0.9616 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.947e-05/0.8868, allocations: 52.34 kB / 0.9617 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001551/0.887, allocations: 199.9 kB / 0.9619 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.045e-05/0.887, allocations: 26.98 kB / 0.9619 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.478e-05/0.887, allocations: 163.5 kB / 0.9621 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.505e-05/0.8871, allocations: 28.02 kB / 0.9621 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-06/0.8871, allocations: 5.094 kB / 0.9621 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.378e-05/0.8871, allocations: 322.2 kB / 0.9624 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.516e-05/0.8872, allocations: 37.95 kB / 0.9624 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.706e-05/0.8873, allocations: 104.5 kB / 0.9625 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.47e-05/0.8873, allocations: 53.42 kB / 0.9626 GB, free: 480 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.8874, allocations: 0.8438 kB / 0.9626 GB, free: 480 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002599/0.8876, allocations: 186.4 kB / 0.9628 GB, free: 364 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.8876, allocations: 10.53 kB / 0.9628 GB, free: 360 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.8876, allocations: 2.812 kB / 0.9628 GB, free: 360 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001428/0.8878, allocations: 30.16 kB / 0.9628 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.8879, allocations: 25.95 kB / 0.9628 GB, free: 336 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009228/0.8888, allocations: 1.324 MB / 0.9641 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.889, allocations: 17.88 kB / 0.9641 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.889, allocations: 6.219 kB / 0.9641 GB, free: 14.96 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.8891, allocations: 153.5 kB / 0.9643 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.555e-05/0.8892, allocations: 19.53 kB / 0.9643 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.713e-05/0.8892, allocations: 21.02 kB / 0.9643 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.8892, allocations: 1.281 kB / 0.9643 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.8892, allocations: 1.156 kB / 0.9643 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.8892, allocations: 0 / 0.9643 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004894/0.8897, allocations: 449.5 kB / 0.9648 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.8897, allocations: 4.062 kB / 0.9648 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.592e-05/0.8898, allocations: 6.25 kB / 0.9648 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.073e-05/0.8898, allocations: 27.66 kB / 0.9648 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.8899, allocations: 0 / 0.9648 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009073/0.8908, allocations: 1.318 MB / 0.9661 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.8908, allocations: 0 / 0.9661 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002192/0.891, allocations: 212.7 kB / 0.9663 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.057e-05/0.8911, allocations: 99.36 kB / 0.9664 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.8911, allocations: 5.078 kB / 0.9664 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.8912, allocations: 6.969 kB / 0.9664 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.298e-05/0.8913, allocations: 10.86 kB / 0.9664 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.8913, allocations: 2.031 kB / 0.9664 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001301/0.8914, allocations: 145.9 kB / 0.9665 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8914, allocations: 0 / 0.9665 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003188/0.8917, allocations: 48.69 kB / 0.9666 GB, free: 12.57 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001177/0.8919, allocations: 102.9 kB / 0.9667 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003531/0.8922, allocations: 206.8 kB / 0.9669 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.8922, allocations: 0 / 0.9669 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.8924, allocations: 156.8 kB / 0.967 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.8927, allocations: 31.03 kB / 0.9671 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006176/0.8933, allocations: 413.1 kB / 0.9675 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.8937, allocations: 0.7566 MB / 0.9682 GB, free: 11.1 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.005e-05/0.8938, allocations: 25.75 kB / 0.9682 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.036e-05/0.8938, allocations: 14.59 kB / 0.9682 GB, free: 11.08 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.8938, allocations: 4 kB / 0.9682 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of Templates: time 0.004329/0.8982, allocations: 1.615 MB / 0.9698 GB, free: 10.28 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches