Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005978/0.005978, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001516/0.001516, allocations: 197.3 kB / 16.79 MB, free: 6.254 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.448/1.448, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.457/2.457, allocations: 390.2 MB / 0.6649 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 71.89 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6278/0.6293, allocations: 140.3 MB / 0.9496 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03561/0.6649, allocations: 34.53 MB / 0.9833 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01861/0.6835, allocations: 11.5 MB / 0.9945 GB, free: 3.992 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004264/0.6878, allocations: 143.2 kB / 0.9947 GB, free: 3.852 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.01016/0.6981, allocations: 3.981 MB / 0.9986 GB, free: 15.86 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005966/0.704, allocations: 1.867 MB / 1 GB, free: 13.99 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.005818/0.7099, allocations: 2.19 MB / 1.003 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01235/0.7223, allocations: 12.41 MB / 1.015 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01748/0.7398, allocations: 12.32 MB / 1.027 GB, free: 2.934 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006268/0.7461, allocations: 3.184 MB / 1.03 GB, free: 15.73 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006939/0.753, allocations: 4.276 MB / 1.034 GB, free: 11.45 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.002059/0.7551, allocations: 0.543 MB / 1.035 GB, free: 10.91 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00501/0.7602, allocations: 2.137 MB / 1.037 GB, free: 8.766 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.004386/0.7646, allocations: 2.81 MB / 1.039 GB, free: 5.949 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.008711/0.7733, allocations: 3.131 MB / 1.042 GB, free: 2.805 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.01441/0.7878, allocations: 10.2 MB / 1.052 GB, free: 8.578 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.088e-05/0.7878, allocations: 8 kB / 1.052 GB, free: 8.57 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.783e-06/0.7878, allocations: 0 / 1.052 GB, free: 8.57 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0003708/0.7882, allocations: 0 / 1.052 GB, free: 8.57 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01537/0.8036, allocations: 5.795 MB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.8037, allocations: 8.031 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006527/0.8102, allocations: 1.06 MB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00698/0.8172, allocations: 3.255 MB / 1.062 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003893/0.8176, allocations: 423.5 kB / 1.063 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001791/0.8194, allocations: 0.5352 MB / 1.063 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01931/0.8387, allocations: 9.079 MB / 1.072 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002155/0.839, allocations: 27.62 kB / 1.072 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001372/0.8404, allocations: 236 kB / 1.072 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004021/0.8408, allocations: 350.8 kB / 1.073 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01358/0.8544, allocations: 6.826 MB / 1.079 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04438/0.8988, allocations: 40.11 MB / 1.118 GB, free: 0.6992 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003939/0.9027, allocations: 3.113 MB / 1.121 GB, free: 13.44 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00275/0.9055, allocations: 1.966 MB / 1.123 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001353/0.9057, allocations: 25.98 kB / 1.123 GB, free: 11.45 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.9057, allocations: 52.56 kB / 1.123 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=179): time 3.497e-06/0.9057, allocations: 0 / 1.123 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of matching and sorting (n=182): time 0.02478/0.9305, allocations: 9.973 MB / 1.133 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.9306, allocations: 69.41 kB / 1.133 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002089/0.9327, allocations: 1.526 MB / 1.135 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001625/0.9329, allocations: 49.7 kB / 1.135 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001292/0.9342, allocations: 2.265 MB / 1.137 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006011/0.9348, allocations: 0.6316 MB / 1.138 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005891/0.9354, allocations: 407.9 kB / 1.138 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.404e-05/0.9355, allocations: 305.1 kB / 1.138 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/0.9371, allocations: 1.176 MB / 1.139 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002017/0.9391, allocations: 1.889 MB / 1.141 GB, free: 8.582 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003852/0.943, allocations: 3.363 MB / 1.145 GB, free: 4.906 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/0.943, allocations: 8 kB / 1.145 GB, free: 4.898 MB / 0.9044 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.007318/0.9503, allocations: 4.589 MB / 1.149 GB, free: 292 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/0.9504, allocations: 12 kB / 1.149 GB, free: 280 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.681e-05/0.9504, allocations: 24 kB / 1.149 GB, free: 256 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003721/0.9541, allocations: 1.579 MB / 1.151 GB, free: 14.66 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.9553, allocations: 351.4 kB / 1.151 GB, free: 14.32 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02065/0.976, allocations: 17.02 MB / 1.168 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/0.9778, allocations: 119.9 kB / 1.168 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001922/0.978, allocations: 92 kB / 1.168 GB, free: 12.55 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (177): * Single equations (assignments): 173 * 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 {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003044/0.9811, allocations: 1.9 MB / 1.17 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004236/0.9815, allocations: 225.4 kB / 1.17 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006636/0.9881, allocations: 4.09 MB / 1.174 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/0.9882, allocations: 20 kB / 1.174 GB, free: 6.281 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.416e-05/0.9882, allocations: 16 kB / 1.174 GB, free: 6.266 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/0.9882, allocations: 11.97 kB / 1.174 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/1.003, allocations: 9.478 MB / 1.183 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/1.003, allocations: 4 kB / 1.183 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007875/1.004, allocations: 183.7 kB / 1.183 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003319/1.007, allocations: 1.353 MB / 1.185 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/1.007, allocations: 32 kB / 1.185 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01933/1.026, allocations: 15.95 MB / 1.2 GB, free: 10.47 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/1.026, allocations: 7.938 kB / 1.2 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007278/1.034, allocations: 4.061 MB / 1.204 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/1.035, allocations: 0.5334 MB / 1.205 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002541/1.035, allocations: 35.94 kB / 1.205 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000854/1.036, allocations: 91.83 kB / 1.205 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004524/1.036, allocations: 165.7 kB / 1.205 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/1.037, allocations: 44 kB / 1.205 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001297/1.038, allocations: 1.001 MB / 1.206 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/1.038, allocations: 0 / 1.206 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003003/1.041, allocations: 0.9883 MB / 1.207 GB, free: 3.418 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (85): * Single equations (assignments): 81 * 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 {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002745/1.041, allocations: 155 kB / 1.207 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.006436/1.048, allocations: 4.285 MB / 1.211 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/1.048, allocations: 0 / 1.211 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.004086/1.052, allocations: 2.666 MB / 1.214 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003155/1.055, allocations: 0.7149 MB / 1.215 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/1.071, allocations: 11.78 MB / 1.226 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003884/1.075, allocations: 3.674 MB / 1.23 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005002/1.075, allocations: 131.4 kB / 1.23 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of SimCode: time 1.142e-06/1.075, allocations: 0 / 1.23 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.6367/1.712, allocations: 159.4 MB / 1.386 GB, free: 168.5 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches