Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.009474/0.009474, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001524/0.001524, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.307/2.307, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 59.91 kB / 0.9509 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8989/0.9003, allocations: 140.4 MB / 1.088 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.01191/0.9122, allocations: 10.1 MB / 1.098 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.006274/0.9185, allocations: 3.168 MB / 1.101 GB, free: 12.47 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007969/0.9194, allocations: 37.47 kB / 1.101 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001703/0.9211, allocations: 0.6003 MB / 1.102 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001797/0.9229, allocations: 0.735 MB / 1.102 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001782/0.9247, allocations: 0.7451 MB / 1.103 GB, free: 11.3 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003782/0.9285, allocations: 2.989 MB / 1.106 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0031/0.9316, allocations: 2.598 MB / 1.108 GB, free: 9.012 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.9339, allocations: 1.248 MB / 1.11 GB, free: 8.484 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002774/0.9367, allocations: 1.557 MB / 1.111 GB, free: 7.863 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0005386/0.9373, allocations: 236.2 kB / 1.111 GB, free: 7.863 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.9386, allocations: 0.4951 MB / 1.112 GB, free: 7.766 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001336/0.94, allocations: 1.07 MB / 1.113 GB, free: 7.371 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001753/0.9417, allocations: 1.111 MB / 1.114 GB, free: 6.68 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.006863/0.9486, allocations: 3.687 MB / 1.118 GB, free: 5.539 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.9486, allocations: 0 / 1.118 GB, free: 5.539 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.194e-06/0.9486, allocations: 0 / 1.118 GB, free: 5.539 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001101/0.9488, allocations: 6.266 kB / 1.118 GB, free: 5.535 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: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.006582/0.9553, allocations: 2.146 MB / 1.12 GB, free: 4.242 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.9554, allocations: 8.875 kB / 1.12 GB, free: 4.242 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009996/0.9654, allocations: 1.318 MB / 1.121 GB, free: 4.07 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003502/0.9689, allocations: 1.295 MB / 1.122 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.9691, allocations: 115 kB / 1.122 GB, free: 3.312 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006644/0.9698, allocations: 150.4 kB / 1.122 GB, free: 3.262 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007552/0.9773, allocations: 3.439 MB / 1.126 GB, free: 1.957 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/0.9774, allocations: 10.08 kB / 1.126 GB, free: 1.949 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002682/0.9777, allocations: 68.03 kB / 1.126 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003384/0.978, allocations: 201.2 kB / 1.126 GB, free: 1.875 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006238/0.9843, allocations: 3.128 MB / 1.129 GB, free: 0.8672 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02073/1.005, allocations: 13.54 MB / 1.142 GB, free: 7.805 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/1.008, allocations: 1.735 MB / 1.144 GB, free: 7.062 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002084/1.01, allocations: 1.442 MB / 1.146 GB, free: 6.34 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 8.931e-05/1.01, allocations: 11.75 kB / 1.146 GB, free: 6.34 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.709e-05/1.01, allocations: 43.78 kB / 1.146 GB, free: 6.293 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=104): time 2.745e-06/1.01, allocations: 0 / 1.146 GB, free: 6.293 MB / 0.8887 GB Notification: Performance of matching and sorting (n=183): time 0.1827/1.193, allocations: 36.69 MB / 1.181 GB, free: 13.35 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.653e-05/1.193, allocations: 73.41 kB / 1.181 GB, free: 13.27 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002689/1.196, allocations: 1.05 MB / 1.182 GB, free: 12.2 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0007203/1.196, allocations: 57.7 kB / 1.183 GB, free: 12.13 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005987/1.197, allocations: 0.7873 MB / 1.183 GB, free: 11.33 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001035/1.198, allocations: 0.6238 MB / 1.184 GB, free: 10.7 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001107/1.199, allocations: 367.4 kB / 1.184 GB, free: 10.33 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001081/1.199, allocations: 301.1 kB / 1.185 GB, free: 10.04 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002939/1.202, allocations: 1.928 MB / 1.186 GB, free: 8.105 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003234/1.205, allocations: 2.289 MB / 1.189 GB, free: 5.691 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006069/1.212, allocations: 4.39 MB / 1.193 GB, free: 1.176 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/1.212, allocations: 4 kB / 1.193 GB, free: 1.172 MB / 0.92 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02101/1.233, allocations: 9.022 MB / 1.202 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.215e-05/1.233, allocations: 14.44 kB / 1.202 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/1.233, allocations: 12 kB / 1.202 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01737/1.25, allocations: 4.971 MB / 1.207 GB, free: 3.113 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/1.251, allocations: 195.7 kB / 1.207 GB, free: 2.922 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05994/1.311, allocations: 38.89 MB / 1.245 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002322/1.313, allocations: 103.9 kB / 1.245 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000248/1.314, allocations: 64 kB / 1.245 GB, free: 11.29 MB / 0.9825 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.001444/1.315, allocations: 0.814 MB / 1.246 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003339/1.316, allocations: 138.3 kB / 1.246 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02051/1.336, allocations: 8.89 MB / 1.255 GB, free: 1.402 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/1.336, allocations: 16 kB / 1.255 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-05/1.336, allocations: 28 kB / 1.255 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.465e-05/1.336, allocations: 15.94 kB / 1.255 GB, free: 1.344 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02819/1.364, allocations: 13.41 MB / 1.268 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-05/1.364, allocations: 4 kB / 1.268 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000608/1.365, allocations: 119.8 kB / 1.268 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01752/1.383, allocations: 4.835 MB / 1.273 GB, free: 14.8 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004115/1.383, allocations: 36 kB / 1.273 GB, free: 14.77 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05704/1.44, allocations: 36.82 MB / 1.309 GB, free: 9.363 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/1.44, allocations: 4 kB / 1.309 GB, free: 9.359 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02109/1.461, allocations: 8.596 MB / 1.317 GB, free: 0.6758 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002187/1.464, allocations: 0.632 MB / 1.318 GB, free: 24 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004075/1.464, allocations: 40.09 kB / 1.318 GB, free: 15.98 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/1.465, allocations: 91.88 kB / 1.318 GB, free: 15.89 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00127/1.467, allocations: 165.7 kB / 1.318 GB, free: 15.73 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001679/1.467, allocations: 48 kB / 1.318 GB, free: 15.68 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001223/1.468, allocations: 0.7343 MB / 1.319 GB, free: 14.93 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/1.468, allocations: 0 / 1.319 GB, free: 14.93 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.004045/1.472, allocations: 1.004 MB / 1.32 GB, free: 13.93 MB / 1.061 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%), (15,23,74.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003717/1.473, allocations: 155 kB / 1.32 GB, free: 13.77 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.01053/1.483, allocations: 5.943 MB / 1.326 GB, free: 7.777 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/1.483, allocations: 0 / 1.326 GB, free: 7.777 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.009532/1.493, allocations: 3.943 MB / 1.329 GB, free: 3.793 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002029/1.495, allocations: 244.3 kB / 1.33 GB, free: 3.555 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009636/1.504, allocations: 5.074 MB / 1.335 GB, free: 14.43 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001826/1.506, allocations: 1.855 MB / 1.336 GB, free: 12.54 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.000887/1.507, allocations: 351.4 kB / 1.337 GB, free: 12.19 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/1.507, allocations: 67.42 kB / 1.337 GB, free: 12.12 MB / 1.076 GB Notification: Performance of SimCode: time 8.42e-07/1.507, allocations: 0 / 1.337 GB, free: 12.12 MB / 1.076 GB Notification: Performance of Templates: time 0.0986/1.606, allocations: 61.2 MB / 1.397 GB, free: 15.02 MB / 1.139 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches