Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.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.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 99.03 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 182.8 kB / 16.92 MB, free: 6.918 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.445/1.445, allocations: 223.3 MB / 241 MB, free: 5.273 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.52/2.52, allocations: 390.9 MB / 0.667 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003598, allocations: 8 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6762/0.6766, allocations: 142.4 MB / 0.9557 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.004734/0.6814, allocations: 4.73 MB / 0.9603 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004464/0.6859, allocations: 3.308 MB / 0.9636 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003302/0.6863, allocations: 10.16 kB / 0.9636 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005694/0.6869, allocations: 173.3 kB / 0.9637 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0009522/0.6878, allocations: 359.1 kB / 0.9641 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006437/0.6885, allocations: 249.5 kB / 0.9643 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0009982/0.6895, allocations: 0.862 MB / 0.9652 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001223/0.6907, allocations: 0.827 MB / 0.966 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003808/0.6911, allocations: 219.5 kB / 0.9662 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004392/0.6916, allocations: 269.5 kB / 0.9664 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.236e-05/0.6916, allocations: 21.55 kB / 0.9664 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006835/0.6923, allocations: 326.8 kB / 0.9668 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.6925, allocations: 137.6 kB / 0.9669 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002514/0.6927, allocations: 233.6 kB / 0.9671 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007657/0.6935, allocations: 0.6627 MB / 0.9678 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.6935, allocations: 0 / 0.9678 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.974e-06/0.6935, allocations: 0.9688 kB / 0.9678 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.17e-05/0.6936, allocations: 0 / 0.9678 GB, free: 14.84 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001373/0.6949, allocations: 0.724 MB / 0.9685 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.695, allocations: 13.31 kB / 0.9685 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003164/0.6982, allocations: 0.6987 MB / 0.9692 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008513/0.699, allocations: 448.2 kB / 0.9696 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.024e-05/0.6991, allocations: 25.69 kB / 0.9696 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.6992, allocations: 43.8 kB / 0.9697 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001863/0.7011, allocations: 0.8404 MB / 0.9705 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.7011, allocations: 1.25 kB / 0.9705 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.375e-05/0.7012, allocations: 19 kB / 0.9705 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001802/0.7013, allocations: 56.81 kB / 0.9706 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002254/0.7036, allocations: 0.9551 MB / 0.9715 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004219/0.7078, allocations: 2.865 MB / 0.9743 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001893/0.7098, allocations: 0.5695 MB / 0.9748 GB, free: 9.742 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008609/0.7106, allocations: 320.2 kB / 0.9751 GB, free: 9.582 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/0.7108, allocations: 87.28 kB / 0.9752 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.7108, allocations: 33.22 kB / 0.9753 GB, free: 9.445 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=22): time 2.234e-06/0.7108, allocations: 3.938 kB / 0.9753 GB, free: 9.441 MB / 0.7325 GB Notification: Performance of matching and sorting (n=32): time 0.0143/0.7251, allocations: 3.646 MB / 0.9788 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.7252, allocations: 59.41 kB / 0.9789 GB, free: 7.23 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005335/0.7258, allocations: 388.5 kB / 0.9793 GB, free: 6.84 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 9.065e-05/0.7259, allocations: 37.7 kB / 0.9793 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.726, allocations: 231.8 kB / 0.9795 GB, free: 6.566 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.7262, allocations: 110.4 kB / 0.9796 GB, free: 6.457 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.81e-05/0.7263, allocations: 37.7 kB / 0.9796 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.7264, allocations: 342.8 kB / 0.98 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.7275, allocations: 407.6 kB / 0.9804 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.7286, allocations: 492 kB / 0.9808 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00211/0.7307, allocations: 0.8623 MB / 0.9817 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.7307, allocations: 0 / 0.9817 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00581/0.7365, allocations: 1.706 MB / 0.9833 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/0.7367, allocations: 161.2 kB / 0.9835 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.7367, allocations: 0 / 0.9835 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004356/0.7411, allocations: 0.923 MB / 0.9844 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007373/0.7418, allocations: 135.8 kB / 0.9845 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008505/0.7503, allocations: 6.22 MB / 0.9906 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009534/0.7513, allocations: 115.8 kB / 0.9907 GB, free: 10.56 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.361e-05/0.7514, allocations: 19.98 kB / 0.9907 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.586e-06/0.7514, allocations: 7.938 kB / 0.9907 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005208/0.7566, allocations: 1.64 MB / 0.9923 GB, free: 8.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.7567, allocations: 4 kB / 0.9923 GB, free: 8.836 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003066/0.7597, allocations: 0.6744 MB / 0.993 GB, free: 8.148 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007185/0.7605, allocations: 143.8 kB / 0.9931 GB, free: 8.008 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005871/0.7663, allocations: 5.34 MB / 0.9984 GB, free: 2.266 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009552/0.7673, allocations: 111.9 kB / 0.9985 GB, free: 2.156 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.844e-05/0.7674, allocations: 15.98 kB / 0.9985 GB, free: 2.141 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005047/0.7679, allocations: 333 kB / 0.9988 GB, free: 1.805 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.7681, allocations: 39.47 kB / 0.9988 GB, free: 1.766 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005514/0.7736, allocations: 1.595 MB / 1 GB, free: 156 kB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.7736, allocations: 4 kB / 1 GB, free: 152 kB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.7736, allocations: 4 kB / 1 GB, free: 148 kB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.7736, allocations: 0 / 1 GB, free: 148 kB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006245/0.7799, allocations: 2.248 MB / 1.003 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.7799, allocations: 4 kB / 1.003 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.7804, allocations: 91.92 kB / 1.003 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00387/0.7843, allocations: 0.8645 MB / 1.004 GB, free: 12.85 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.653e-05/0.7843, allocations: 8 kB / 1.004 GB, free: 12.84 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007465/0.7918, allocations: 6.063 MB / 1.009 GB, free: 6.379 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.7919, allocations: 0 / 1.009 GB, free: 6.379 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004975/0.7968, allocations: 1.585 MB / 1.011 GB, free: 4.758 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003771/0.7972, allocations: 176.7 kB / 1.011 GB, free: 4.566 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.7974, allocations: 11.94 kB / 1.011 GB, free: 4.555 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007124/0.7981, allocations: 87.86 kB / 1.011 GB, free: 4.469 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.7983, allocations: 35.89 kB / 1.011 GB, free: 4.434 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.784e-05/0.7983, allocations: 8 kB / 1.011 GB, free: 4.426 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004637/0.7988, allocations: 311.1 kB / 1.012 GB, free: 4.121 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7988, allocations: 0 / 1.012 GB, free: 4.121 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001111/0.7999, allocations: 236 kB / 1.012 GB, free: 3.891 MB / 0.7637 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 (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002123/0.8001, allocations: 111.8 kB / 1.012 GB, free: 3.773 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.004727/0.8049, allocations: 2.229 MB / 1.014 GB, free: 1.445 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.8049, allocations: 4.125 kB / 1.014 GB, free: 1.441 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.8064, allocations: 0.8054 MB / 1.015 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008121/0.8072, allocations: 124.6 kB / 1.015 GB, free: 488 kB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002343/0.8096, allocations: 1.373 MB / 1.016 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005837/0.8102, allocations: 0.9141 MB / 1.017 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001834/0.8104, allocations: 43.41 kB / 1.017 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of SimCode: time 6.81e-07/0.8104, allocations: 0 / 1.017 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of Templates: time 0.02012/0.8305, allocations: 15.31 MB / 1.032 GB, free: 14.79 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches