Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, 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.001351/0.001351, 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.521/1.521, allocations: 223.2 MB / 239.9 MB, free: 5.316 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.645/2.645, allocations: 390.3 MB / 0.6653 GB, free: 3 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003701/0.0003701, allocations: 16 kB / 0.8145 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7954/0.7958, allocations: 142.3 MB / 0.9535 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.00536/0.8012, allocations: 5.714 MB / 0.9591 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003962/0.8052, allocations: 2.887 MB / 0.9619 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000462/0.8057, allocations: 23.38 kB / 0.9619 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003113/0.806, allocations: 124.9 kB / 0.9621 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001042/0.8071, allocations: 412 kB / 0.9625 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008128/0.8079, allocations: 322.1 kB / 0.9628 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0009111/0.8088, allocations: 0.7441 MB / 0.9635 GB, free: 348 kB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001515/0.8103, allocations: 0.9267 MB / 0.9644 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000621/0.811, allocations: 351.9 kB / 0.9647 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006621/0.8116, allocations: 399.9 kB / 0.9651 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.87e-05/0.8117, allocations: 35.16 kB / 0.9651 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005469/0.8123, allocations: 149.2 kB / 0.9653 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002732/0.8126, allocations: 248.2 kB / 0.9655 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002338/0.8128, allocations: 173.2 kB / 0.9657 GB, free: 15 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.8139, allocations: 0.8659 MB / 0.9665 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.8139, allocations: 0 / 0.9665 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.596e-06/0.8139, allocations: 0.9688 kB / 0.9665 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.434e-05/0.8139, allocations: 3.938 kB / 0.9665 GB, free: 14.39 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001882/0.8158, allocations: 1.007 MB / 0.9675 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.8159, allocations: 9.531 kB / 0.9675 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001343/0.8172, allocations: 211.5 kB / 0.9677 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.8183, allocations: 0.5311 MB / 0.9682 GB, free: 13.06 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.833e-05/0.8183, allocations: 46.33 kB / 0.9683 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.8185, allocations: 69.42 kB / 0.9684 GB, free: 13.01 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001854/0.8204, allocations: 1.069 MB / 0.9694 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.8204, allocations: 10.94 kB / 0.9694 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.677e-05/0.8205, allocations: 33.08 kB / 0.9694 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001871/0.8207, allocations: 89.3 kB / 0.9695 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.822, allocations: 0.7431 MB / 0.9703 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007403/0.8294, allocations: 5.893 MB / 0.976 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.8306, allocations: 0.5518 MB / 0.9765 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.8306, allocations: 4.812 kB / 0.9766 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.8307, allocations: 42.09 kB / 0.9766 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 2.124e-06/0.8307, allocations: 0 / 0.9766 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.004841/0.8355, allocations: 1.983 MB / 0.9785 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.94e-05/0.8356, allocations: 60.5 kB / 0.9786 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007627/0.8364, allocations: 0.5489 MB / 0.9791 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.205e-05/0.8366, allocations: 37.08 kB / 0.9792 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004596/0.8371, allocations: 411.3 kB / 0.9796 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003283/0.8374, allocations: 172.4 kB / 0.9797 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.854e-05/0.8374, allocations: 14.5 kB / 0.9797 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0003998/0.8379, allocations: 369.6 kB / 0.9801 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006348/0.8385, allocations: 273.5 kB / 0.9803 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008788/0.8394, allocations: 495.5 kB / 0.9808 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005938/0.84, allocations: 339.9 kB / 0.9811 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.84, allocations: 9.562 kB / 0.9811 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002087/0.8421, allocations: 1.074 MB / 0.9822 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.8421, allocations: 8 kB / 0.9822 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.8421, allocations: 11.94 kB / 0.9822 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009154/0.8431, allocations: 279.6 kB / 0.9825 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.8436, allocations: 127.8 kB / 0.9826 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007993/0.8516, allocations: 6.708 MB / 0.9892 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008132/0.8525, allocations: 40.03 kB / 0.9892 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.195e-05/0.8525, allocations: 28 kB / 0.9892 GB, free: 10.14 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000452/0.853, allocations: 249.6 kB / 0.9895 GB, free: 9.887 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.8531, allocations: 67.25 kB / 0.9895 GB, free: 9.82 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001692/0.8548, allocations: 0.8923 MB / 0.9904 GB, free: 8.906 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/0.8549, allocations: 8 kB / 0.9904 GB, free: 8.898 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.8549, allocations: 7.938 kB / 0.9904 GB, free: 8.891 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.8549, allocations: 3.984 kB / 0.9904 GB, free: 8.887 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004304/0.8592, allocations: 1.724 MB / 0.9921 GB, free: 7.074 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.8592, allocations: 0 / 0.9921 GB, free: 7.074 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004282/0.8597, allocations: 68.08 kB / 0.9922 GB, free: 7.008 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.8608, allocations: 263.2 kB / 0.9924 GB, free: 6.738 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.169e-05/0.8609, allocations: 12 kB / 0.9924 GB, free: 6.727 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009689/0.8706, allocations: 6.69 MB / 0.999 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.8706, allocations: 0 / 0.999 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002801/0.8734, allocations: 1.052 MB / 1 GB, free: 14.36 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005331/0.874, allocations: 196.2 kB / 1 GB, free: 14.15 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.8741, allocations: 11.95 kB / 1 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005683/0.8747, allocations: 27.97 kB / 1 GB, free: 14.11 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/0.875, allocations: 47.92 kB / 1 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-05/0.8751, allocations: 16 kB / 1 GB, free: 14.05 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0006757/0.8758, allocations: 383 kB / 1.001 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8758, allocations: 0 / 1.001 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001368/0.8771, allocations: 224 kB / 1.001 GB, free: 13.46 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002902/0.8775, allocations: 111.2 kB / 1.001 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003016/0.8805, allocations: 1.268 MB / 1.002 GB, free: 12.03 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.8805, allocations: 0 / 1.002 GB, free: 12.03 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001848/0.8824, allocations: 0.8971 MB / 1.003 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/0.8838, allocations: 196.6 kB / 1.003 GB, free: 10.89 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.8872, allocations: 1.574 MB / 1.005 GB, free: 9.273 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008198/0.8881, allocations: 1.024 MB / 1.006 GB, free: 8.223 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006395/0.8887, allocations: 118.3 kB / 1.006 GB, free: 8.105 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.8889, allocations: 47.44 kB / 1.006 GB, free: 8.059 MB / 0.7637 GB Notification: Performance of SimCode: time 1.333e-06/0.8889, allocations: 0 / 1.006 GB, free: 8.059 MB / 0.7637 GB Notification: Performance of Templates: time 0.02606/0.915, allocations: 10.26 MB / 1.016 GB, free: 13.93 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches