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.00139/0.00139, allocations: 106.7 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.001547/0.001547, allocations: 187 kB / 17.34 MB, free: 5.723 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.398/1.398, allocations: 222.9 MB / 241 MB, free: 15.08 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.276/2.276, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 67.89 kB / 0.9515 GB, free: 7.598 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7873/0.7886, allocations: 140.4 MB / 1.089 GB, free: 5.746 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.007789/0.7965, allocations: 6.154 MB / 1.095 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005402/0.8019, allocations: 3.178 MB / 1.098 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008978/0.8028, allocations: 37.88 kB / 1.098 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002914/0.8058, allocations: 0.9374 MB / 1.099 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001753/0.8076, allocations: 493 kB / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001642/0.8093, allocations: 497.5 kB / 1.1 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001824/0.8111, allocations: 1.112 MB / 1.101 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001146/0.8123, allocations: 0.6339 MB / 1.101 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008712/0.8131, allocations: 447.3 kB / 1.102 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007717/0.8139, allocations: 470 kB / 1.102 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001282/0.8141, allocations: 58.62 kB / 1.102 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.8152, allocations: 493.2 kB / 1.103 GB, free: 13 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003729/0.8156, allocations: 287.3 kB / 1.103 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0005843/0.8162, allocations: 405.4 kB / 1.103 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002066/0.8183, allocations: 1.172 MB / 1.105 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.8183, allocations: 0 / 1.105 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.974e-06/0.8183, allocations: 1.031 kB / 1.105 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.584e-05/0.8183, allocations: 0 / 1.105 GB, free: 12.24 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.001806/0.8202, allocations: 1.061 MB / 1.106 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.8202, allocations: 9 kB / 1.106 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001581/0.8218, allocations: 223.4 kB / 1.106 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009343/0.8227, allocations: 0.6012 MB / 1.106 GB, free: 11.02 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.8228, allocations: 46.58 kB / 1.106 GB, free: 11 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.8229, allocations: 66.59 kB / 1.106 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.8244, allocations: 1.032 MB / 1.107 GB, free: 10.37 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.8244, allocations: 12.03 kB / 1.107 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.227e-05/0.8245, allocations: 29.7 kB / 1.108 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.058e-05/0.8246, allocations: 69.23 kB / 1.108 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.8257, allocations: 0.6947 MB / 1.108 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005063/0.8308, allocations: 5.724 MB / 1.114 GB, free: 5.133 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008698/0.8317, allocations: 0.5977 MB / 1.114 GB, free: 4.758 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008214/0.8325, allocations: 441.1 kB / 1.115 GB, free: 4.609 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.8325, allocations: 4.156 kB / 1.115 GB, free: 4.609 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.8326, allocations: 37.28 kB / 1.115 GB, free: 4.566 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=41): time 2.164e-06/0.8326, allocations: 4 kB / 1.115 GB, free: 4.562 MB / 0.8731 GB Notification: Performance of matching and sorting (n=42): time 0.004508/0.8371, allocations: 2.018 MB / 1.117 GB, free: 3.523 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.8372, allocations: 58.62 kB / 1.117 GB, free: 3.457 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005391/0.8377, allocations: 465.8 kB / 1.117 GB, free: 3.242 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/0.8377, allocations: 31.02 kB / 1.117 GB, free: 3.207 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.838, allocations: 390.4 kB / 1.118 GB, free: 2.895 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.8381, allocations: 145.9 kB / 1.118 GB, free: 2.781 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.8383, allocations: 118.3 kB / 1.118 GB, free: 2.715 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.8384, allocations: 364.3 kB / 1.118 GB, free: 2.379 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.8388, allocations: 238.8 kB / 1.119 GB, free: 2.301 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004948/0.8393, allocations: 456.5 kB / 1.119 GB, free: 1.945 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009375/0.8403, allocations: 0.7466 MB / 1.12 GB, free: 1.434 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.994e-06/0.8403, allocations: 2.375 kB / 1.12 GB, free: 1.434 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001881/0.8422, allocations: 1.043 MB / 1.121 GB, free: 0.9961 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.8422, allocations: 8.125 kB / 1.121 GB, free: 0.9961 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.8422, allocations: 6.562 kB / 1.121 GB, free: 0.9961 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.8432, allocations: 322.6 kB / 1.121 GB, free: 0.8945 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.8436, allocations: 98.44 kB / 1.121 GB, free: 0.8828 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00702/0.8506, allocations: 7.47 MB / 1.129 GB, free: 10.51 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000494/0.8511, allocations: 29.08 kB / 1.129 GB, free: 10.5 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/0.8512, allocations: 26.09 kB / 1.129 GB, free: 10.5 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.0003517/0.8515, allocations: 248.6 kB / 1.129 GB, free: 10.31 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.8516, allocations: 69.09 kB / 1.129 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001664/0.8533, allocations: 0.8957 MB / 1.13 GB, free: 9.883 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.8533, allocations: 4.438 kB / 1.13 GB, free: 9.883 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.8533, allocations: 3.312 kB / 1.13 GB, free: 9.883 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.8534, allocations: 4.172 kB / 1.13 GB, free: 9.883 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002612/0.856, allocations: 1.684 MB / 1.131 GB, free: 9.023 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.856, allocations: 1.062 kB / 1.131 GB, free: 9.023 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.8562, allocations: 38.11 kB / 1.131 GB, free: 9.023 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009086/0.8571, allocations: 309.8 kB / 1.132 GB, free: 8.926 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.8571, allocations: 8.125 kB / 1.132 GB, free: 8.922 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006923/0.8641, allocations: 7.453 MB / 1.139 GB, free: 2.566 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.8641, allocations: 10 kB / 1.139 GB, free: 2.559 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.8658, allocations: 0.9927 MB / 1.14 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000303/0.8661, allocations: 174.6 kB / 1.14 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.8662, allocations: 8.078 kB / 1.14 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/0.8666, allocations: 29.45 kB / 1.14 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.8667, allocations: 38.52 kB / 1.14 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.237e-05/0.8667, allocations: 17 kB / 1.14 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004039/0.8671, allocations: 312.3 kB / 1.141 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8672, allocations: 0 / 1.141 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0008885/0.868, allocations: 194 kB / 1.141 GB, free: 1.703 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.0001503/0.8682, allocations: 116.1 kB / 1.141 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001915/0.8701, allocations: 1.193 MB / 1.142 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.8701, allocations: 1.25 kB / 1.142 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.8714, allocations: 0.8508 MB / 1.143 GB, free: 280 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.8724, allocations: 213.7 kB / 1.143 GB, free: 204 kB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/0.8747, allocations: 1.297 MB / 1.144 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006625/0.8754, allocations: 0.9915 MB / 1.145 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.8755, allocations: 39.91 kB / 1.145 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of SimCode: time 4.01e-07/0.8755, allocations: 0 / 1.145 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of Templates: time 0.02419/0.8997, allocations: 18.69 MB / 1.164 GB, free: 7.352 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