Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001497/0.001496, allocations: 102.8 kB / 16.35 MB, free: 5.879 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.001653/0.001653, allocations: 195.6 kB / 17.3 MB, free: 5.52 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.46/2.46, allocations: 437.1 MB / 0.7112 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002381/0.002381, allocations: 60.12 kB / 0.8707 GB, free: 1.387 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3307, allocations: 151.6 MB / 1.019 GB, free: 9.793 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.0171/0.3478, allocations: 14.79 MB / 1.033 GB, free: 10.94 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0155/0.3634, allocations: 10.36 MB / 1.043 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001568/0.365, allocations: 59.62 kB / 1.043 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.004515/0.3696, allocations: 1.693 MB / 1.045 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005178/0.3748, allocations: 1.814 MB / 1.047 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002143/0.3769, allocations: 0.7546 MB / 1.048 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.004375/0.3813, allocations: 2.746 MB / 1.05 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002415/0.3837, allocations: 1.415 MB / 1.052 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002432/0.3862, allocations: 1.504 MB / 1.053 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002074/0.3883, allocations: 1.167 MB / 1.054 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0004435/0.3887, allocations: 160 kB / 1.054 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001756/0.3905, allocations: 0.7838 MB / 1.055 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0007545/0.3913, allocations: 0.6076 MB / 1.056 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001456/0.3927, allocations: 0.9522 MB / 1.057 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003303/0.3961, allocations: 2.757 MB / 1.059 GB, free: 72 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3961, allocations: 4 kB / 1.059 GB, free: 68 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3961, allocations: 0 / 1.059 GB, free: 68 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.302e-05/0.3962, allocations: 0 / 1.059 GB, free: 68 kB / 0.8262 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.004114/0.4003, allocations: 2.178 MB / 1.061 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 9.132e-05/0.4004, allocations: 12.92 kB / 1.062 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/0.4118, allocations: 2.105 MB / 1.064 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003203/0.415, allocations: 1.307 MB / 1.065 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-05/0.4151, allocations: 86.69 kB / 1.065 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002719/0.4154, allocations: 116.1 kB / 1.065 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005549/0.421, allocations: 2.67 MB / 1.068 GB, free: 7.328 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.283e-05/0.421, allocations: 15.78 kB / 1.068 GB, free: 7.312 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000171/0.4212, allocations: 55.98 kB / 1.068 GB, free: 7.258 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005894/0.4218, allocations: 190.1 kB / 1.068 GB, free: 7.07 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007078/0.4289, allocations: 2.791 MB / 1.071 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.514/0.9429, allocations: 10.45 MB / 1.081 GB, free: 55.29 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006381/0.9493, allocations: 2.338 MB / 1.083 GB, free: 54.66 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003182/0.9525, allocations: 1.279 MB / 1.084 GB, free: 54.3 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 8.275e-05/0.9526, allocations: 9.75 kB / 1.084 GB, free: 54.3 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.9527, allocations: 48.36 kB / 1.084 GB, free: 54.25 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=89): time 2.945e-06/0.9527, allocations: 0 / 1.084 GB, free: 54.25 MB / 0.8419 GB Notification: Performance of matching and sorting (n=153): time 0.05982/1.012, allocations: 16.49 MB / 1.101 GB, free: 50.61 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/1.013, allocations: 66.62 kB / 1.101 GB, free: 50.54 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001766/1.014, allocations: 1.185 MB / 1.102 GB, free: 50.07 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002961/1.015, allocations: 55.67 kB / 1.102 GB, free: 50.01 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004971/1.015, allocations: 0.736 MB / 1.103 GB, free: 49.43 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004814/1.016, allocations: 0.5171 MB / 1.103 GB, free: 49.03 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005696/1.016, allocations: 284.6 kB / 1.103 GB, free: 48.91 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 4.267e-05/1.016, allocations: 302.4 kB / 1.104 GB, free: 48.61 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003424/1.02, allocations: 1.509 MB / 1.105 GB, free: 48.16 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003422/1.023, allocations: 1.784 MB / 1.107 GB, free: 47.41 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006668/1.03, allocations: 3.366 MB / 1.11 GB, free: 46.04 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/1.03, allocations: 1.875 kB / 1.11 GB, free: 46.04 MB / 0.8419 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.0135/1.043, allocations: 5.27 MB / 1.115 GB, free: 43.34 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/1.043, allocations: 7.906 kB / 1.115 GB, free: 43.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/1.043, allocations: 10.97 kB / 1.115 GB, free: 43.34 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00668/1.05, allocations: 1.885 MB / 1.117 GB, free: 42.36 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002041/1.052, allocations: 416.3 kB / 1.117 GB, free: 42.19 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02482/1.077, allocations: 24.14 MB / 1.141 GB, free: 23.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/1.08, allocations: 309.3 kB / 1.141 GB, free: 22.89 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001931/1.08, allocations: 67.25 kB / 1.141 GB, free: 22.87 MB / 0.8419 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.0008791/1.081, allocations: 466.9 kB / 1.142 GB, free: 22.54 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003034/1.081, allocations: 172.7 kB / 1.142 GB, free: 22.45 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/1.093, allocations: 5.319 MB / 1.147 GB, free: 19.31 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.722e-05/1.093, allocations: 20 kB / 1.147 GB, free: 19.29 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.409e-05/1.093, allocations: 23.47 kB / 1.147 GB, free: 19.27 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-05/1.093, allocations: 7.969 kB / 1.147 GB, free: 19.27 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01497/1.108, allocations: 7.414 MB / 1.154 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/1.108, allocations: 4 kB / 1.154 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/1.11, allocations: 351.4 kB / 1.155 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005428/1.115, allocations: 1.709 MB / 1.157 GB, free: 9.668 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001783/1.115, allocations: 43.91 kB / 1.157 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0244/1.14, allocations: 23.3 MB / 1.179 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/1.14, allocations: 4 kB / 1.179 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01204/1.152, allocations: 4.889 MB / 1.184 GB, free: 12.26 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/1.153, allocations: 498.7 kB / 1.185 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002985/1.153, allocations: 28 kB / 1.185 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002032/1.156, allocations: 323.5 kB / 1.185 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005574/1.156, allocations: 145 kB / 1.185 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/1.156, allocations: 63.89 kB / 1.185 GB, free: 11.2 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001191/1.157, allocations: 0.786 MB / 1.186 GB, free: 10.42 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.8e-07/1.157, allocations: 4 kB / 1.186 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002937/1.16, allocations: 0.6523 MB / 1.186 GB, free: 9.762 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.0004431/1.161, allocations: 143.5 kB / 1.187 GB, free: 9.617 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01127/1.172, allocations: 5.155 MB / 1.192 GB, free: 4.363 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/1.172, allocations: 0 / 1.192 GB, free: 4.363 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.007097/1.179, allocations: 3.352 MB / 1.195 GB, free: 0.9062 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/1.182, allocations: 0.5714 MB / 1.196 GB, free: 376 kB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008494/1.19, allocations: 4.283 MB / 1.2 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/1.192, allocations: 1.568 MB / 1.201 GB, free: 10.45 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001382/1.193, allocations: 386.4 kB / 1.202 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003666/1.194, allocations: 107.4 kB / 1.202 GB, free: 9.961 MB / 0.8887 GB Notification: Performance of SimCode: time 9.22e-07/1.194, allocations: 0 / 1.202 GB, free: 9.961 MB / 0.8887 GB Notification: Performance of Templates: time 0.07222/1.266, allocations: 44.86 MB / 1.245 GB, free: 13.61 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches