Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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.ACLine_L,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.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,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.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 105 kB / 16.41 MB, free: 6.465 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.0017/0.001701, allocations: 187 kB / 17.34 MB, free: 5.719 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.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.189/2.189, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.91 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7658/0.7672, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.00735/0.7746, allocations: 6.161 MB / 1.095 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005335/0.7799, allocations: 3.173 MB / 1.098 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006474/0.7806, allocations: 30.47 kB / 1.098 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002571/0.7832, allocations: 0.934 MB / 1.099 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001575/0.7848, allocations: 474.8 kB / 1.099 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001561/0.7864, allocations: 0.4891 MB / 1.1 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001758/0.7882, allocations: 1.103 MB / 1.101 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.7894, allocations: 0.6454 MB / 1.101 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.7905, allocations: 441.8 kB / 1.102 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001089/0.7916, allocations: 474.6 kB / 1.102 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0002494/0.7919, allocations: 62.28 kB / 1.102 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001437/0.7933, allocations: 485.2 kB / 1.103 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0005262/0.7938, allocations: 288.4 kB / 1.103 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0009775/0.7948, allocations: 399.8 kB / 1.103 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002957/0.7978, allocations: 1.182 MB / 1.105 GB, free: 12 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.7978, allocations: 1.531 kB / 1.105 GB, free: 12 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.014e-06/0.7978, allocations: 0 / 1.105 GB, free: 12 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.699e-05/0.7979, allocations: 0 / 1.105 GB, free: 12 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.003512/0.8014, allocations: 1.056 MB / 1.106 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.8015, allocations: 9.641 kB / 1.106 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/0.8035, allocations: 222.9 kB / 1.106 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.8049, allocations: 0.5976 MB / 1.106 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.04e-05/0.8049, allocations: 50.08 kB / 1.106 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/0.8051, allocations: 61.97 kB / 1.106 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001977/0.8071, allocations: 1.036 MB / 1.107 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.748e-05/0.8072, allocations: 8.234 kB / 1.107 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.341e-05/0.8073, allocations: 28.23 kB / 1.108 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/0.8074, allocations: 70.53 kB / 1.108 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.8089, allocations: 0.6982 MB / 1.108 GB, free: 9.848 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006603/0.8155, allocations: 5.72 MB / 1.114 GB, free: 4.898 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.8166, allocations: 0.6103 MB / 1.114 GB, free: 4.512 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009347/0.8175, allocations: 432 kB / 1.115 GB, free: 4.371 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.8176, allocations: 4.562 kB / 1.115 GB, free: 4.371 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.8176, allocations: 40.69 kB / 1.115 GB, free: 4.324 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=41): time 2.224e-06/0.8176, allocations: 1.094 kB / 1.115 GB, free: 4.324 MB / 0.8731 GB Notification: Performance of matching and sorting (n=42): time 0.005049/0.8227, allocations: 2.009 MB / 1.117 GB, free: 3.293 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.614e-05/0.8228, allocations: 59.19 kB / 1.117 GB, free: 3.227 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007217/0.8235, allocations: 465.2 kB / 1.117 GB, free: 3.012 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.93e-05/0.8236, allocations: 30.98 kB / 1.117 GB, free: 2.977 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003188/0.8239, allocations: 394.1 kB / 1.118 GB, free: 2.66 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.824, allocations: 144.2 kB / 1.118 GB, free: 2.551 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.8242, allocations: 112.1 kB / 1.118 GB, free: 2.488 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001928/0.8244, allocations: 364.9 kB / 1.118 GB, free: 2.152 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004122/0.8249, allocations: 242.8 kB / 1.119 GB, free: 2.07 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005623/0.8254, allocations: 456.4 kB / 1.119 GB, free: 1.715 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.8265, allocations: 0.7497 MB / 1.12 GB, free: 1.199 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.8265, allocations: 6.344 kB / 1.12 GB, free: 1.195 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002244/0.8288, allocations: 1.04 MB / 1.121 GB, free: 0.7617 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.8288, allocations: 8.047 kB / 1.121 GB, free: 0.7617 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.8289, allocations: 7.781 kB / 1.121 GB, free: 0.7617 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/0.83, allocations: 318.8 kB / 1.121 GB, free: 0.6641 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000368/0.8304, allocations: 97.38 kB / 1.121 GB, free: 0.6523 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008354/0.8387, allocations: 7.469 MB / 1.128 GB, free: 10.28 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000596/0.8393, allocations: 34.3 kB / 1.129 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.211e-05/0.8394, allocations: 25.72 kB / 1.129 GB, free: 10.26 MB / 0.8887 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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005649/0.84, allocations: 248.6 kB / 1.129 GB, free: 10.08 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.8402, allocations: 65.42 kB / 1.129 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001968/0.8422, allocations: 0.891 MB / 1.13 GB, free: 9.656 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.8422, allocations: 9 kB / 1.13 GB, free: 9.652 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.614e-05/0.8423, allocations: 3.5 kB / 1.13 GB, free: 9.652 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.8423, allocations: 2.672 kB / 1.13 GB, free: 9.652 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003405/0.8457, allocations: 1.684 MB / 1.131 GB, free: 8.793 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.8457, allocations: 2.188 kB / 1.131 GB, free: 8.793 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/0.8459, allocations: 37.83 kB / 1.131 GB, free: 8.793 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009377/0.8468, allocations: 310.5 kB / 1.132 GB, free: 8.695 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.8469, allocations: 7.75 kB / 1.132 GB, free: 8.691 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007852/0.8547, allocations: 7.457 MB / 1.139 GB, free: 2.332 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.8548, allocations: 10.5 kB / 1.139 GB, free: 2.324 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002003/0.8568, allocations: 0.9881 MB / 1.14 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.8572, allocations: 175.3 kB / 1.14 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.8573, allocations: 16.58 kB / 1.14 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/0.8577, allocations: 19.58 kB / 1.14 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.8578, allocations: 43.98 kB / 1.14 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.948e-05/0.8578, allocations: 13.59 kB / 1.14 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004406/0.8583, allocations: 314.9 kB / 1.141 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8583, allocations: 0 / 1.141 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009281/0.8592, allocations: 198.2 kB / 1.141 GB, free: 1.465 MB / 0.8887 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 (23): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001535/0.8594, allocations: 110.5 kB / 1.141 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00203/0.8614, allocations: 1.197 MB / 1.142 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.8614, allocations: 0 / 1.142 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.8628, allocations: 0.8547 MB / 1.143 GB, free: 36 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.8639, allocations: 205.5 kB / 1.143 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002735/0.8667, allocations: 1.295 MB / 1.144 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008865/0.8676, allocations: 0.9907 MB / 1.145 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.8677, allocations: 39.28 kB / 1.145 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of SimCode: time 4.41e-07/0.8677, allocations: 1.062 kB / 1.145 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of Templates: time 0.03221/0.9, allocations: 18.7 MB / 1.164 GB, free: 7.16 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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] Variables in the result:R1.i[1],R1.i[2],R1.v[1],R1.v[2],R2.i[1],R2.i[2],R2.v[1],R2.v[2],R3.i[1],R3.i[2],R3.v[1],R3.v[2],load_sc.i[1],load_sc.i[2],time