Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.ACSimpleGridMedium,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.ACSimpleGridMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium,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.ACSimpleGridMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000898/0.000898, allocations: 99.38 kB / 15.37 MB, free: 0.707 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.001143/0.001143, allocations: 181 kB / 16.28 MB, free: 6.277 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.464/1.464, allocations: 223.3 MB / 240.3 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.499/2.499, allocations: 390.9 MB / 0.6663 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003655/0.0003655, allocations: 8 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8477/0.8481, allocations: 142.4 MB / 0.9551 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium): time 0.005761/0.854, allocations: 4.805 MB / 0.9597 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005075/0.8591, allocations: 3.746 MB / 0.9634 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003507/0.8595, allocations: 11.06 kB / 0.9634 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008099/0.8603, allocations: 230.8 kB / 0.9636 GB, free: 0.8711 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001035/0.8613, allocations: 422.4 kB / 0.964 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005894/0.8619, allocations: 247.1 kB / 0.9643 GB, free: 384 kB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001233/0.8632, allocations: 0.9131 MB / 0.9652 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001332/0.8645, allocations: 0.8296 MB / 0.966 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005105/0.8651, allocations: 297.3 kB / 0.9663 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004512/0.8655, allocations: 276.4 kB / 0.9665 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.974e-05/0.8656, allocations: 17.94 kB / 0.9665 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007362/0.8663, allocations: 326.5 kB / 0.9669 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.8665, allocations: 137 kB / 0.967 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002812/0.8668, allocations: 231.8 kB / 0.9672 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.8678, allocations: 0.8195 MB / 0.968 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.8679, allocations: 4 kB / 0.968 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8679, allocations: 0 / 0.968 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.8679, allocations: 0 / 0.968 GB, free: 14.08 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.001511/0.8694, allocations: 0.7315 MB / 0.9687 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.8695, allocations: 12.98 kB / 0.9687 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003257/0.8727, allocations: 0.6972 MB / 0.9694 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007889/0.8735, allocations: 466 kB / 0.9699 GB, free: 12.74 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.8736, allocations: 25.03 kB / 0.9699 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.8737, allocations: 40.23 kB / 0.9699 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001867/0.8756, allocations: 0.8409 MB / 0.9707 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.8756, allocations: 5.25 kB / 0.9707 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.822e-05/0.8757, allocations: 11.38 kB / 0.9708 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001884/0.8758, allocations: 69.25 kB / 0.9708 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002268/0.8781, allocations: 0.9487 MB / 0.9718 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004472/0.8826, allocations: 2.877 MB / 0.9746 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001821/0.8844, allocations: 0.5795 MB / 0.9751 GB, free: 8.949 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008293/0.8853, allocations: 315.3 kB / 0.9754 GB, free: 8.793 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001191/0.8854, allocations: 96.5 kB / 0.9755 GB, free: 8.688 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.8855, allocations: 31.88 kB / 0.9755 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=22): time 1.944e-06/0.8855, allocations: 0 / 0.9755 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36): time 0.0157/0.9012, allocations: 4.027 MB / 0.9795 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.9013, allocations: 59.34 kB / 0.9795 GB, free: 5.82 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005826/0.9019, allocations: 429.5 kB / 0.9799 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.865e-05/0.9019, allocations: 33.7 kB / 0.98 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.9021, allocations: 236.2 kB / 0.9802 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.9023, allocations: 126.2 kB / 0.9803 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.321e-05/0.9024, allocations: 37.7 kB / 0.9804 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.9025, allocations: 350.8 kB / 0.9807 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.9036, allocations: 448.5 kB / 0.9811 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001106/0.9047, allocations: 0.5086 MB / 0.9816 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00221/0.907, allocations: 0.9579 MB / 0.9826 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.907, allocations: 0 / 0.9826 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.006276/0.9133, allocations: 1.896 MB / 0.9844 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001494/0.9134, allocations: 147.9 kB / 0.9845 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.9134, allocations: 0 / 0.9845 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004713/0.9182, allocations: 1.024 MB / 0.9855 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000847/0.919, allocations: 143.8 kB / 0.9857 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/0.93, allocations: 6.188 MB / 0.9917 GB, free: 8.93 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.9311, allocations: 123.9 kB / 0.9918 GB, free: 8.809 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.427e-05/0.9312, allocations: 16 kB / 0.9919 GB, free: 8.793 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.958e-06/0.9312, allocations: 4 kB / 0.9919 GB, free: 8.789 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005323/0.9365, allocations: 1.601 MB / 0.9934 GB, free: 7.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.9366, allocations: 4 kB / 0.9934 GB, free: 7.176 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003275/0.9399, allocations: 0.743 MB / 0.9942 GB, free: 6.426 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007215/0.9406, allocations: 147.8 kB / 0.9943 GB, free: 6.281 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0079/0.9485, allocations: 5.402 MB / 0.9996 GB, free: 0.6055 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.9496, allocations: 111.9 kB / 0.9997 GB, free: 0.4961 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.954e-05/0.9496, allocations: 20.03 kB / 0.9997 GB, free: 488 kB / 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.000507/0.9501, allocations: 344.9 kB / 1 GB, free: 132 kB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.9503, allocations: 43.52 kB / 1 GB, free: 88 kB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005637/0.9559, allocations: 1.786 MB / 1.002 GB, free: 14.28 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.9559, allocations: 4 kB / 1.002 GB, free: 14.28 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.9559, allocations: 0 / 1.002 GB, free: 14.28 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.956, allocations: 7.984 kB / 1.002 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006361/0.9623, allocations: 2.472 MB / 1.004 GB, free: 11.72 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.9624, allocations: 0 / 1.004 GB, free: 11.72 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003999/0.9628, allocations: 83.94 kB / 1.004 GB, free: 11.64 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004031/0.9668, allocations: 0.9418 MB / 1.005 GB, free: 10.69 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.604e-05/0.9669, allocations: 11.98 kB / 1.005 GB, free: 10.68 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008716/0.9756, allocations: 5.864 MB / 1.011 GB, free: 4.547 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.9756, allocations: 0 / 1.011 GB, free: 4.547 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005143/0.9808, allocations: 1.724 MB / 1.013 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003392/0.9811, allocations: 196.5 kB / 1.013 GB, free: 2.578 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.945e-05/0.9812, allocations: 7.938 kB / 1.013 GB, free: 2.57 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006535/0.9819, allocations: 95.86 kB / 1.013 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.9821, allocations: 35.94 kB / 1.013 GB, free: 2.441 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.98e-05/0.9821, allocations: 12 kB / 1.013 GB, free: 2.43 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004535/0.9826, allocations: 331 kB / 1.013 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2e-07/0.9826, allocations: 4 kB / 1.013 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001097/0.9837, allocations: 264 kB / 1.014 GB, free: 1.848 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002069/0.9839, allocations: 111.2 kB / 1.014 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.006555/0.9904, allocations: 2.522 MB / 1.016 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.9905, allocations: 0 / 1.016 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.002494/0.993, allocations: 0.9616 MB / 1.017 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008813/0.9939, allocations: 125.7 kB / 1.017 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.9962, allocations: 1.452 MB / 1.019 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005534/0.9967, allocations: 0.9529 MB / 1.02 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0005857/0.9973, allocations: 155.2 kB / 1.02 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.9975, allocations: 31.42 kB / 1.02 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of SimCode: time 2.134e-06/0.9975, allocations: 0 / 1.02 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of Templates: time 0.0238/1.021, allocations: 15.78 MB / 1.035 GB, free: 11.72 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGridMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches