Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009814/0.0009816, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.01093/0.01093, allocations: 169 kB / 16.26 MB, free: 6.652 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.522/1.522, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.578/2.578, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000364/0.000364, allocations: 15.98 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7787/0.7791, allocations: 142.4 MB / 0.955 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01782/0.7969, allocations: 14.14 MB / 0.9689 GB, free: 13 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01764/0.8146, allocations: 10.23 MB / 0.9788 GB, free: 4.957 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002021/0.8167, allocations: 50.69 kB / 0.9789 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.8182, allocations: 294.7 kB / 0.9792 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.007636/0.8258, allocations: 1.608 MB / 0.9807 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.003601/0.8295, allocations: 0.6807 MB / 0.9814 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.009279/0.8388, allocations: 3.408 MB / 0.9847 GB, free: 1.02 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006273/0.8451, allocations: 1.979 MB / 0.9867 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004219/0.8493, allocations: 1.328 MB / 0.988 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003515/0.8529, allocations: 1.085 MB / 0.989 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0007023/0.8536, allocations: 68 kB / 0.9891 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003526/0.8571, allocations: 0.8538 MB / 0.9899 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.00143/0.8586, allocations: 0.506 MB / 0.9904 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.002944/0.8616, allocations: 0.8602 MB / 0.9913 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.006813/0.8684, allocations: 2.67 MB / 0.9939 GB, free: 7.59 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.8684, allocations: 4 kB / 0.9939 GB, free: 7.586 MB / 0.7481 GB Notification: Performance of FrontEnd: time 4.609e-06/0.8685, allocations: 0 / 0.9939 GB, free: 7.586 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0001254/0.8686, allocations: 3.938 kB / 0.9939 GB, free: 7.582 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.007264/0.8759, allocations: 1.835 MB / 0.9957 GB, free: 5.691 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 7.224e-05/0.876, allocations: 12.03 kB / 0.9957 GB, free: 5.68 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01704/0.893, allocations: 2.175 MB / 0.9978 GB, free: 3.5 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003134/0.8962, allocations: 1.21 MB / 0.999 GB, free: 2.234 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.8963, allocations: 82.69 kB / 0.9991 GB, free: 2.152 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005246/0.8969, allocations: 120.1 kB / 0.9992 GB, free: 2.035 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007309/0.9042, allocations: 2.702 MB / 1.002 GB, free: 15.18 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.959e-05/0.9043, allocations: 11.84 kB / 1.002 GB, free: 15.17 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002622/0.9045, allocations: 55.98 kB / 1.002 GB, free: 15.12 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007317/0.9053, allocations: 190.1 kB / 1.002 GB, free: 14.93 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008619/0.9139, allocations: 2.842 MB / 1.005 GB, free: 12.08 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01837/0.9323, allocations: 10.57 MB / 1.015 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007259/0.9396, allocations: 2.383 MB / 1.017 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003447/0.9431, allocations: 1.301 MB / 1.019 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.568e-05/0.9432, allocations: 16.98 kB / 1.019 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.241e-05/0.9433, allocations: 47.5 kB / 1.019 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=89): time 5.189e-06/0.9433, allocations: 0 / 1.019 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=153): time 0.07465/1.018, allocations: 16.53 MB / 1.035 GB, free: 12.45 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/1.018, allocations: 68.72 kB / 1.035 GB, free: 12.38 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001916/1.02, allocations: 1.172 MB / 1.036 GB, free: 11.19 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0002644/1.02, allocations: 53.7 kB / 1.036 GB, free: 11.13 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006299/1.021, allocations: 0.7359 MB / 1.037 GB, free: 10.39 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006739/1.022, allocations: 0.5198 MB / 1.037 GB, free: 9.863 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002766/1.022, allocations: 125.6 kB / 1.038 GB, free: 9.734 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001189/1.022, allocations: 309.1 kB / 1.038 GB, free: 9.43 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003795/1.026, allocations: 1.53 MB / 1.039 GB, free: 7.898 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004126/1.03, allocations: 1.795 MB / 1.041 GB, free: 6.008 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008028/1.038, allocations: 3.408 MB / 1.044 GB, free: 2.5 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/1.038, allocations: 4 kB / 1.044 GB, free: 2.496 MB / 0.795 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01485/1.053, allocations: 5.331 MB / 1.05 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/1.053, allocations: 8 kB / 1.05 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/1.053, allocations: 4 kB / 1.05 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007435/1.06, allocations: 1.877 MB / 1.051 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/1.063, allocations: 427.2 kB / 1.052 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03161/1.094, allocations: 22.2 MB / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003223/1.098, allocations: 323.4 kB / 1.074 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003845/1.098, allocations: 63.97 kB / 1.074 GB, free: 3.148 MB / 0.8262 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001283/1.099, allocations: 469.5 kB / 1.074 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005921/1.1, allocations: 173.9 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01538/1.115, allocations: 5.355 MB / 1.08 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.149e-05/1.115, allocations: 16 kB / 1.08 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.371e-05/1.116, allocations: 24 kB / 1.08 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.24e-05/1.116, allocations: 11.91 kB / 1.08 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01993/1.136, allocations: 7.484 MB / 1.087 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.91e-05/1.136, allocations: 0 / 1.087 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001932/1.138, allocations: 367.7 kB / 1.087 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006778/1.144, allocations: 1.706 MB / 1.089 GB, free: 3.363 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004034/1.145, allocations: 51.89 kB / 1.089 GB, free: 3.312 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03034/1.175, allocations: 21.38 MB / 1.11 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.175, allocations: 4 kB / 1.11 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/1.189, allocations: 4.936 MB / 1.115 GB, free: 7.852 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/1.191, allocations: 494.8 kB / 1.115 GB, free: 7.348 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004885/1.191, allocations: 28 kB / 1.115 GB, free: 7.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002648/1.194, allocations: 327.5 kB / 1.116 GB, free: 7 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006492/1.194, allocations: 153 kB / 1.116 GB, free: 6.852 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001868/1.195, allocations: 55.97 kB / 1.116 GB, free: 6.797 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001453/1.196, allocations: 0.7899 MB / 1.117 GB, free: 6.008 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.41e-07/1.196, allocations: 0 / 1.117 GB, free: 6.008 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002952/1.199, allocations: 0.6562 MB / 1.117 GB, free: 5.352 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004359/1.199, allocations: 143.1 kB / 1.117 GB, free: 5.203 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01401/1.214, allocations: 5.159 MB / 1.123 GB, free: 15.93 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-05/1.214, allocations: 8 kB / 1.123 GB, free: 15.93 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.008974/1.223, allocations: 3.37 MB / 1.126 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004555/1.227, allocations: 0.52 MB / 1.126 GB, free: 11.95 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/1.239, allocations: 5.035 MB / 1.131 GB, free: 6.855 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001986/1.241, allocations: 1.568 MB / 1.133 GB, free: 5.25 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001966/1.243, allocations: 382.4 kB / 1.133 GB, free: 4.871 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004699/1.244, allocations: 103.4 kB / 1.133 GB, free: 4.77 MB / 0.8887 GB Notification: Performance of SimCode: time 2.545e-06/1.244, allocations: 0 / 1.133 GB, free: 4.77 MB / 0.8887 GB Notification: Performance of Templates: time 0.07622/1.32, allocations: 42.42 MB / 1.175 GB, free: 10.79 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches