Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 104.6 kB / 16.35 MB, free: 5.887 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.001244/0.001244, allocations: 192.3 kB / 17.29 MB, free: 5.527 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.497/1.497, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.258/2.258, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001319, allocations: 62.2 kB / 0.814 GB, free: 32.58 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3295, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02995/0.3595, allocations: 26.68 MB / 0.9772 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01564/0.3752, allocations: 8.078 MB / 0.9851 GB, free: 5.199 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003612/0.3788, allocations: 115.4 kB / 0.9852 GB, free: 5.086 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.007809/0.3868, allocations: 2.761 MB / 0.9879 GB, free: 2.32 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.006268/0.393, allocations: 1.593 MB / 0.9894 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.005677/0.3987, allocations: 1.668 MB / 0.9911 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.009383/0.4081, allocations: 6.134 MB / 0.997 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00988/0.4181, allocations: 7.308 MB / 1.004 GB, free: 1.484 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005845/0.424, allocations: 2.574 MB / 1.007 GB, free: 14.9 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005909/0.4299, allocations: 2.831 MB / 1.009 GB, free: 12.06 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.001421/0.4314, allocations: 0.5078 MB / 1.01 GB, free: 11.55 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003589/0.435, allocations: 1.291 MB / 1.011 GB, free: 10.26 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.002836/0.4378, allocations: 2.054 MB / 1.013 GB, free: 8.203 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.004776/0.4426, allocations: 2.381 MB / 1.016 GB, free: 5.812 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.4529, allocations: 8.047 MB / 1.023 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.453, allocations: 0 / 1.023 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.755e-06/0.453, allocations: 0 / 1.023 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0002823/0.4533, allocations: 0 / 1.023 GB, free: 13.74 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01257/0.4659, allocations: 4.239 MB / 1.028 GB, free: 9.438 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.4659, allocations: 8.031 kB / 1.028 GB, free: 9.43 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004596/0.4705, allocations: 0.8001 MB / 1.028 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006844/0.4774, allocations: 2.577 MB / 1.031 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002187/0.4777, allocations: 275.6 kB / 1.031 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001136/0.4788, allocations: 376.5 kB / 1.031 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01248/0.4913, allocations: 5.99 MB / 1.037 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001284/0.4915, allocations: 19.86 kB / 1.037 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004323/0.4919, allocations: 156 kB / 1.037 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006347/0.4926, allocations: 282.9 kB / 1.038 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01009/0.5027, allocations: 4.52 MB / 1.042 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04084/0.5436, allocations: 27.46 MB / 1.069 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002176/0.5458, allocations: 1.123 MB / 1.07 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00159/0.5474, allocations: 1.019 MB / 1.071 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001028/0.5475, allocations: 13 kB / 1.071 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.731e-05/0.5476, allocations: 47.56 kB / 1.071 GB, free: 9.949 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=110): time 3.827e-06/0.5476, allocations: 0 / 1.071 GB, free: 9.949 MB / 0.8575 GB Notification: Performance of matching and sorting (n=131): time 0.02217/0.5698, allocations: 9.657 MB / 1.081 GB, free: 84 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.5699, allocations: 68.66 kB / 1.081 GB, free: 4 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5751/1.145, allocations: 1.49 MB / 1.082 GB, free: 122.8 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0003339/1.145, allocations: 49.64 kB / 1.082 GB, free: 122.7 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001085/1.147, allocations: 1.665 MB / 1.084 GB, free: 122.2 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004611/1.147, allocations: 470.6 kB / 1.084 GB, free: 121.9 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006016/1.148, allocations: 329.2 kB / 1.085 GB, free: 121.7 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.527e-05/1.148, allocations: 309 kB / 1.085 GB, free: 121.4 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/1.149, allocations: 0.916 MB / 1.086 GB, free: 121.1 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/1.151, allocations: 1.463 MB / 1.087 GB, free: 120.1 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00381/1.155, allocations: 2.545 MB / 1.09 GB, free: 118.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.529e-05/1.155, allocations: 5.312 kB / 1.09 GB, free: 118.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006732/1.162, allocations: 3.287 MB / 1.093 GB, free: 117.2 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/1.162, allocations: 15.05 kB / 1.093 GB, free: 117.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-05/1.162, allocations: 16.94 kB / 1.093 GB, free: 117.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002393/1.164, allocations: 0.7408 MB / 1.094 GB, free: 117 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/1.166, allocations: 384.7 kB / 1.094 GB, free: 116.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01489/1.181, allocations: 17.04 MB / 1.111 GB, free: 102.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/1.183, allocations: 107.5 kB / 1.111 GB, free: 102.3 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001449/1.183, allocations: 72.56 kB / 1.111 GB, free: 102.3 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002536/1.185, allocations: 1.318 MB / 1.112 GB, free: 101.7 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003725/1.186, allocations: 204 kB / 1.112 GB, free: 101.6 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00514/1.191, allocations: 2.783 MB / 1.115 GB, free: 100.4 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/1.191, allocations: 13.22 kB / 1.115 GB, free: 100.4 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.761e-05/1.191, allocations: 7.219 kB / 1.115 GB, free: 100.4 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/1.191, allocations: 6.797 kB / 1.115 GB, free: 100.4 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/1.202, allocations: 6.218 MB / 1.121 GB, free: 97.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/1.202, allocations: 5.594 kB / 1.121 GB, free: 97.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/1.203, allocations: 232.8 kB / 1.121 GB, free: 97.73 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001978/1.205, allocations: 0.6758 MB / 1.122 GB, free: 97.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/1.205, allocations: 29.2 kB / 1.122 GB, free: 97.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/1.218, allocations: 16.79 MB / 1.138 GB, free: 82.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-05/1.218, allocations: 12.38 kB / 1.138 GB, free: 82.95 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009277/1.227, allocations: 4.003 MB / 1.142 GB, free: 81.07 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001899/1.229, allocations: 448.9 kB / 1.143 GB, free: 80.78 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003557/1.23, allocations: 37.5 kB / 1.143 GB, free: 80.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/1.231, allocations: 84.27 kB / 1.143 GB, free: 80.74 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004431/1.231, allocations: 112.6 kB / 1.143 GB, free: 80.71 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.995e-05/1.231, allocations: 45.75 kB / 1.143 GB, free: 80.7 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001446/1.233, allocations: 0.9916 MB / 1.144 GB, free: 80.33 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/1.233, allocations: 0 / 1.144 GB, free: 80.33 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002857/1.236, allocations: 0.6847 MB / 1.145 GB, free: 80.27 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[2]) * 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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002891/1.236, allocations: 155.1 kB / 1.145 GB, free: 80.14 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.004912/1.241, allocations: 3.533 MB / 1.148 GB, free: 78.18 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/1.241, allocations: 1.438 kB / 1.148 GB, free: 78.18 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.002847/1.244, allocations: 2.291 MB / 1.15 GB, free: 76.68 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002857/1.247, allocations: 0.6663 MB / 1.151 GB, free: 76.46 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/1.257, allocations: 6.462 MB / 1.157 GB, free: 72.9 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002854/1.26, allocations: 2.663 MB / 1.16 GB, free: 71.21 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001695/1.262, allocations: 481.8 kB / 1.16 GB, free: 71.01 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/1.262, allocations: 118 kB / 1.161 GB, free: 71 MB / 0.8575 GB Notification: Performance of SimCode: time 1.322e-06/1.262, allocations: 4 kB / 1.161 GB, free: 70.99 MB / 0.8575 GB Notification: Performance of Templates: time 0.05397/1.316, allocations: 33.65 MB / 1.193 GB, free: 40.42 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches