Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.51/1.51, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.885/2.885, allocations: 437 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 71.88 kB / 0.8692 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7243/0.7263, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.01499/0.7414, allocations: 10.08 MB / 1.027 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006816/0.7482, allocations: 3.185 MB / 1.03 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.7494, allocations: 35.88 kB / 1.03 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002203/0.7516, allocations: 0.583 MB / 1.031 GB, free: 4.531 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.002226/0.7538, allocations: 0.7427 MB / 1.032 GB, free: 3.785 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001948/0.7558, allocations: 0.7408 MB / 1.032 GB, free: 3.043 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004122/0.7599, allocations: 2.992 MB / 1.035 GB, free: 44 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00443/0.7644, allocations: 2.627 MB / 1.038 GB, free: 13.37 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002482/0.7669, allocations: 1.246 MB / 1.039 GB, free: 12.12 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003307/0.7702, allocations: 1.562 MB / 1.041 GB, free: 10.55 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0009073/0.7711, allocations: 232 kB / 1.041 GB, free: 10.33 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001829/0.773, allocations: 0.4994 MB / 1.041 GB, free: 9.828 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.001925/0.7749, allocations: 1.072 MB / 1.042 GB, free: 8.754 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.002029/0.777, allocations: 1.113 MB / 1.043 GB, free: 7.637 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004633/0.7816, allocations: 3.661 MB / 1.047 GB, free: 3.965 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.7817, allocations: 0 / 1.047 GB, free: 3.965 MB / 0.795 GB Notification: Performance of FrontEnd: time 4.178e-06/0.7817, allocations: 7.984 kB / 1.047 GB, free: 3.957 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.26e-05/0.7818, allocations: 0 / 1.047 GB, free: 3.957 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.005627/0.7874, allocations: 2.134 MB / 1.049 GB, free: 1.766 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.7875, allocations: 12.03 kB / 1.049 GB, free: 1.754 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009314/0.7968, allocations: 1.313 MB / 1.05 GB, free: 448 kB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00308/0.7999, allocations: 1.263 MB / 1.052 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.8001, allocations: 115.2 kB / 1.052 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004697/0.8005, allocations: 148.3 kB / 1.052 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006319/0.8069, allocations: 3.437 MB / 1.055 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.366e-05/0.8069, allocations: 7.938 kB / 1.055 GB, free: 11.33 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002236/0.8072, allocations: 63.97 kB / 1.055 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002961/0.8075, allocations: 203.1 kB / 1.055 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005828/0.8133, allocations: 3.128 MB / 1.059 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02004/0.8334, allocations: 13.61 MB / 1.072 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002924/0.8363, allocations: 1.728 MB / 1.073 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00222/0.8386, allocations: 1.444 MB / 1.075 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.556e-05/0.8387, allocations: 13 kB / 1.075 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.197e-05/0.8387, allocations: 39.56 kB / 1.075 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=104): time 3.096e-06/0.8388, allocations: 0 / 1.075 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of matching and sorting (n=183): time 0.1544/0.9932, allocations: 36.67 MB / 1.111 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.422e-05/0.9933, allocations: 73.41 kB / 1.111 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002069/0.9954, allocations: 1.046 MB / 1.112 GB, free: 240 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0003724/0.9958, allocations: 53.7 kB / 1.112 GB, free: 180 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006712/0.9965, allocations: 0.7951 MB / 1.113 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009378/0.9974, allocations: 0.6161 MB / 1.113 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001304/0.9987, allocations: 375.3 kB / 1.114 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.9989, allocations: 305.1 kB / 1.114 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003146/1.002, allocations: 1.928 MB / 1.116 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003728/1.006, allocations: 2.285 MB / 1.118 GB, free: 9.73 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007493/1.013, allocations: 4.392 MB / 1.122 GB, free: 5.215 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.46e-05/1.013, allocations: 4 kB / 1.122 GB, free: 5.211 MB / 0.8731 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02406/1.037, allocations: 9.019 MB / 1.131 GB, free: 12.16 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 5.014e-05/1.038, allocations: 11.94 kB / 1.131 GB, free: 12.15 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.552e-05/1.038, allocations: 12.03 kB / 1.131 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01875/1.056, allocations: 5.008 MB / 1.136 GB, free: 7.117 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009431/1.057, allocations: 191.7 kB / 1.136 GB, free: 6.93 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0666/1.124, allocations: 38.92 MB / 1.174 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/1.126, allocations: 107.9 kB / 1.174 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000358/1.127, allocations: 68 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (105): * Single equations (assignments): 101 * 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 {(8,16,100.0%), (8,16,100.0%), (8,38,100.0%), (8,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001556/1.128, allocations: 0.8095 MB / 1.175 GB, free: 14.43 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003758/1.128, allocations: 138.3 kB / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.026/1.154, allocations: 8.886 MB / 1.184 GB, free: 5.363 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.578e-05/1.155, allocations: 20 kB / 1.184 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001191/1.155, allocations: 28 kB / 1.184 GB, free: 5.316 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.944e-05/1.155, allocations: 11.95 kB / 1.184 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05167/1.206, allocations: 13.3 MB / 1.197 GB, free: 7.855 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.57e-05/1.206, allocations: 4 kB / 1.197 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009701/1.207, allocations: 123.8 kB / 1.197 GB, free: 7.73 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03497/1.242, allocations: 4.777 MB / 1.202 GB, free: 2.938 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004926/1.243, allocations: 35.98 kB / 1.202 GB, free: 2.902 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06653/1.31, allocations: 34.87 MB / 1.236 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/1.31, allocations: 4 kB / 1.236 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01998/1.33, allocations: 8.404 MB / 1.244 GB, free: 6.945 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/1.331, allocations: 0.6124 MB / 1.245 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003161/1.331, allocations: 43.78 kB / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/1.333, allocations: 95.83 kB / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008543/1.334, allocations: 165.6 kB / 1.245 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/1.334, allocations: 48 kB / 1.245 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001071/1.335, allocations: 0.7343 MB / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.61e-07/1.335, allocations: 0 / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003013/1.338, allocations: 1.008 MB / 1.247 GB, free: 4.215 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (66): * Single equations (assignments): 62 * 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 {(8,16,100.0%), (8,38,100.0%), (8,8,100.0%), (14,24,80.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003136/1.338, allocations: 143.1 kB / 1.247 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.537/1.875, allocations: 6.684 MB / 1.253 GB, free: 219.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/1.875, allocations: 4.125 kB / 1.253 GB, free: 219.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01012/1.885, allocations: 3.83 MB / 1.257 GB, free: 218.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/1.887, allocations: 245.4 kB / 1.257 GB, free: 218.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/1.898, allocations: 4.98 MB / 1.262 GB, free: 217.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002161/1.901, allocations: 1.855 MB / 1.264 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001009/1.902, allocations: 356.3 kB / 1.264 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001826/1.902, allocations: 62.77 kB / 1.265 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of SimCode: time 1.042e-06/1.902, allocations: 1.094 kB / 1.265 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.07033/1.972, allocations: 59.14 MB / 1.322 GB, free: 175 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches