Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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_RL_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_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01133/0.01133, allocations: 98.02 kB / 15.73 MB, free: 6.062 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.002141/0.002141, allocations: 195.1 kB / 16.68 MB, free: 5.969 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.518/1.518, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.583/2.583, allocations: 437 MB / 0.7105 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 67.83 kB / 1.019 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.06/1.061, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02522/1.087, allocations: 23.42 MB / 1.189 GB, free: 12.35 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.01405/1.101, allocations: 6.48 MB / 1.196 GB, free: 5.848 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003653/1.104, allocations: 103.5 kB / 1.196 GB, free: 5.746 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.005588/1.11, allocations: 1.486 MB / 1.197 GB, free: 4.254 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.006623/1.117, allocations: 1.824 MB / 1.199 GB, free: 2.422 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005309/1.122, allocations: 1.471 MB / 1.201 GB, free: 0.9531 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.01058/1.133, allocations: 6.904 MB / 1.207 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01237/1.145, allocations: 6.941 MB / 1.214 GB, free: 3 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005447/1.15, allocations: 2.843 MB / 1.217 GB, free: 152 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006945/1.157, allocations: 3.47 MB / 1.22 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.002013/1.159, allocations: 0.5273 MB / 1.221 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004087/1.164, allocations: 1.174 MB / 1.222 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.00413/1.168, allocations: 2.472 MB / 1.224 GB, free: 8.488 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.006616/1.174, allocations: 2.532 MB / 1.227 GB, free: 5.945 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.01288/1.187, allocations: 8.539 MB / 1.235 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/1.187, allocations: 0 / 1.235 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.693e-06/1.187, allocations: 0 / 1.235 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0003319/1.188, allocations: 4 kB / 1.235 GB, free: 13.38 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.01571/1.203, allocations: 4.539 MB / 1.24 GB, free: 8.766 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 8.02e-05/1.204, allocations: 12.03 kB / 1.24 GB, free: 8.754 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01124/1.215, allocations: 1.703 MB / 1.241 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009528/1.224, allocations: 2.709 MB / 1.244 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004243/1.225, allocations: 275.7 kB / 1.244 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002559/1.227, allocations: 364.2 kB / 1.245 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01842/1.246, allocations: 7.487 MB / 1.252 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001803/1.246, allocations: 15.88 kB / 1.252 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00133/1.247, allocations: 163.9 kB / 1.252 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007268/1.248, allocations: 491.3 kB / 1.252 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01246/1.261, allocations: 5.697 MB / 1.258 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04526/1.306, allocations: 31.55 MB / 1.289 GB, free: 3.234 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003212/1.309, allocations: 2.086 MB / 1.291 GB, free: 1.137 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00329/1.313, allocations: 2.178 MB / 1.293 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002288/1.313, allocations: 17.31 kB / 1.293 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.852e-05/1.313, allocations: 51.81 kB / 1.293 GB, free: 14.87 MB / 1.029 GB Notification: Performance of pre-optimization done (n=146): time 3.397e-06/1.313, allocations: 0 / 1.293 GB, free: 14.87 MB / 1.029 GB Notification: Performance of matching and sorting (n=251): time 0.3126/1.626, allocations: 77.08 MB / 1.368 GB, free: 1.656 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.062e-05/1.626, allocations: 77.41 kB / 1.368 GB, free: 1.566 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003611/1.629, allocations: 1.678 MB / 1.37 GB, free: 15.84 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0007975/1.63, allocations: 65.7 kB / 1.37 GB, free: 15.77 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001627/1.632, allocations: 1.792 MB / 1.372 GB, free: 13.96 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.001542/1.633, allocations: 0.8985 MB / 1.373 GB, free: 13.06 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001779/1.635, allocations: 489.3 kB / 1.373 GB, free: 12.57 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001118/1.635, allocations: 305.1 kB / 1.374 GB, free: 12.27 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004222/1.639, allocations: 2.73 MB / 1.376 GB, free: 9.539 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00476/1.644, allocations: 3.328 MB / 1.379 GB, free: 5.965 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009422/1.654, allocations: 6.393 MB / 1.386 GB, free: 15.33 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-05/1.654, allocations: 4 kB / 1.386 GB, free: 15.33 MB / 1.123 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03433/1.688, allocations: 14.69 MB / 1.4 GB, free: 0.5938 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 6.368e-05/1.688, allocations: 12 kB / 1.4 GB, free: 0.582 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.372e-05/1.688, allocations: 20 kB / 1.4 GB, free: 0.5625 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03101/1.719, allocations: 9.245 MB / 1.409 GB, free: 7.293 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/1.721, allocations: 311.4 kB / 1.409 GB, free: 6.988 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08558/1.806, allocations: 52.4 MB / 1.461 GB, free: 1.699 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003368/1.81, allocations: 219.7 kB / 1.461 GB, free: 1.484 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006627/1.81, allocations: 104 kB / 1.461 GB, free: 1.383 MB / 1.186 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003455/1.814, allocations: 1.582 MB / 1.462 GB, free: 15.79 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/1.815, allocations: 262.5 kB / 1.463 GB, free: 15.53 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03425/1.849, allocations: 14.75 MB / 1.477 GB, free: 0.7227 MB / 1.201 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.631e-05/1.849, allocations: 24 kB / 1.477 GB, free: 0.6992 MB / 1.201 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002445/1.85, allocations: 44 kB / 1.477 GB, free: 0.6562 MB / 1.201 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-05/1.85, allocations: 11.95 kB / 1.477 GB, free: 0.6445 MB / 1.201 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04674/1.896, allocations: 20.53 MB / 1.497 GB, free: 11.91 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.232e-05/1.897, allocations: 8 kB / 1.497 GB, free: 11.91 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009429/1.898, allocations: 160.6 kB / 1.497 GB, free: 11.75 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03133/1.929, allocations: 9.011 MB / 1.506 GB, free: 2.711 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008926/1.93, allocations: 48 kB / 1.506 GB, free: 2.664 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.9561/2.886, allocations: 51.94 MB / 1.557 GB, free: 360.8 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.555e-05/2.886, allocations: 9.375 kB / 1.557 GB, free: 360.8 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03074/2.917, allocations: 14.38 MB / 1.571 GB, free: 359.8 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001967/2.919, allocations: 0.8593 MB / 1.572 GB, free: 359.5 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005186/2.919, allocations: 54.7 kB / 1.572 GB, free: 359.5 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002149/2.921, allocations: 204.2 kB / 1.572 GB, free: 359.5 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001298/2.923, allocations: 242.8 kB / 1.572 GB, free: 359.4 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002352/2.923, allocations: 62.94 kB / 1.572 GB, free: 359.4 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.001457/2.924, allocations: 1.126 MB / 1.573 GB, free: 359 MB / 1.279 GB Notification: Performance of sort global known variables: time 1.4e-07/2.924, allocations: 1.219 kB / 1.573 GB, free: 359 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.004492/2.929, allocations: 1.619 MB / 1.575 GB, free: 358.8 MB / 1.279 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004251/2.929, allocations: 163.5 kB / 1.575 GB, free: 358.7 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.02031/2.95, allocations: 10.59 MB / 1.586 GB, free: 355.1 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/2.95, allocations: 3.062 kB / 1.586 GB, free: 355.1 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.01653/2.966, allocations: 7.329 MB / 1.593 GB, free: 349.2 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003124/2.969, allocations: 0.5562 MB / 1.593 GB, free: 348.8 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01352/2.983, allocations: 8.826 MB / 1.602 GB, free: 340.9 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002894/2.986, allocations: 3.221 MB / 1.605 GB, free: 338.3 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.001056/2.987, allocations: 383.4 kB / 1.605 GB, free: 337.9 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002324/2.987, allocations: 107.4 kB / 1.605 GB, free: 337.8 MB / 1.279 GB Notification: Performance of SimCode: time 9.32e-07/2.987, allocations: 4 kB / 1.605 GB, free: 337.8 MB / 1.279 GB Notification: Performance of Templates: time 0.1074/3.095, allocations: 92.71 MB / 1.696 GB, free: 245.4 MB / 1.279 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches