Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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,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") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 113.7 kB / 16.37 MB, free: 6.004 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.001405/0.001405, allocations: 196 kB / 17.31 MB, free: 5.613 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.425/1.425, allocations: 222.9 MB / 241 MB, free: 15.16 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.26/2.26, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.11 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2798, allocations: 140.4 MB / 0.9511 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03611/0.316, allocations: 32.61 MB / 0.983 GB, free: 7.32 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01895/0.335, allocations: 10.27 MB / 0.993 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004528/0.3395, allocations: 147.3 kB / 0.9932 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.01035/0.35, allocations: 3.714 MB / 0.9968 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007067/0.3571, allocations: 1.862 MB / 0.9986 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.007252/0.3644, allocations: 2.123 MB / 1.001 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0106/0.375, allocations: 7.329 MB / 1.008 GB, free: 13.81 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01276/0.3878, allocations: 9.416 MB / 1.017 GB, free: 4.27 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005839/0.3937, allocations: 3.174 MB / 1.02 GB, free: 1.086 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005837/0.3996, allocations: 3.485 MB / 1.024 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.001704/0.4013, allocations: 0.6445 MB / 1.024 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004708/0.406, allocations: 1.782 MB / 1.026 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.004777/0.4108, allocations: 2.546 MB / 1.028 GB, free: 8.609 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.007353/0.4182, allocations: 2.898 MB / 1.031 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01385/0.4321, allocations: 10.1 MB / 1.041 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4321, allocations: 0 / 1.041 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.355e-06/0.4321, allocations: 0 / 1.041 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0003211/0.4324, allocations: 0 / 1.041 GB, free: 11.57 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01259/0.445, allocations: 4.994 MB / 1.046 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.4451, allocations: 16.03 kB / 1.046 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005511/0.4506, allocations: 0.9512 MB / 1.047 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006981/0.4576, allocations: 3.05 MB / 1.05 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002551/0.4579, allocations: 349.7 kB / 1.05 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00119/0.4591, allocations: 460.2 kB / 1.051 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01326/0.4723, allocations: 7.667 MB / 1.058 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001377/0.4725, allocations: 27.72 kB / 1.058 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004815/0.473, allocations: 200 kB / 1.058 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003158/0.4733, allocations: 312.9 kB / 1.059 GB, free: 9.078 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0108/0.4841, allocations: 5.71 MB / 1.064 GB, free: 3.352 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6546/1.139, allocations: 34.81 MB / 1.098 GB, free: 104.6 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003315/1.142, allocations: 2.156 MB / 1.1 GB, free: 103.4 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001826/1.144, allocations: 1.262 MB / 1.102 GB, free: 102.9 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.404e-05/1.144, allocations: 20.94 kB / 1.102 GB, free: 102.9 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/1.144, allocations: 50.81 kB / 1.102 GB, free: 102.8 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=133): time 3.376e-06/1.144, allocations: 0 / 1.102 GB, free: 102.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=136): time 0.01491/1.159, allocations: 7.087 MB / 1.109 GB, free: 99.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/1.159, allocations: 73.84 kB / 1.109 GB, free: 99.2 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/1.162, allocations: 1.483 MB / 1.11 GB, free: 98.59 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001614/1.162, allocations: 46.36 kB / 1.11 GB, free: 98.54 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001168/1.163, allocations: 2.001 MB / 1.112 GB, free: 97.03 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004311/1.163, allocations: 490.8 kB / 1.113 GB, free: 96.66 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000522/1.164, allocations: 348 kB / 1.113 GB, free: 96.49 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.3e-05/1.164, allocations: 304.7 kB / 1.113 GB, free: 96.2 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/1.165, allocations: 0.9119 MB / 1.114 GB, free: 95.86 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/1.167, allocations: 1.598 MB / 1.116 GB, free: 94.64 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003229/1.17, allocations: 2.737 MB / 1.118 GB, free: 92.84 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-05/1.17, allocations: 10.94 kB / 1.118 GB, free: 92.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006529/1.177, allocations: 3.53 MB / 1.122 GB, free: 91.37 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/1.177, allocations: 17.94 kB / 1.122 GB, free: 91.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-05/1.177, allocations: 23.47 kB / 1.122 GB, free: 91.37 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002726/1.179, allocations: 0.9014 MB / 1.123 GB, free: 91.06 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/1.181, allocations: 358 kB / 1.123 GB, free: 91.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01848/1.199, allocations: 23.1 MB / 1.146 GB, free: 71.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/1.202, allocations: 97.88 kB / 1.146 GB, free: 71.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003424/1.202, allocations: 87.47 kB / 1.146 GB, free: 71.11 MB / 0.8575 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 (185): * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,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 prepare postOptimizeDAE: time 0.004559/1.207, allocations: 1.617 MB / 1.147 GB, free: 70.39 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006364/1.207, allocations: 199.2 kB / 1.148 GB, free: 70.29 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005478/1.213, allocations: 2.994 MB / 1.15 GB, free: 69 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.906e-05/1.213, allocations: 14.12 kB / 1.15 GB, free: 69 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.249e-05/1.213, allocations: 9.406 kB / 1.15 GB, free: 69 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/1.213, allocations: 7.125 kB / 1.15 GB, free: 69 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/1.224, allocations: 7.338 MB / 1.158 GB, free: 64.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/1.224, allocations: 4 kB / 1.158 GB, free: 64.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007757/1.225, allocations: 177.8 kB / 1.158 GB, free: 64.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002186/1.227, allocations: 0.8268 MB / 1.159 GB, free: 63.97 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/1.228, allocations: 35.75 kB / 1.159 GB, free: 63.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01451/1.242, allocations: 21.94 MB / 1.18 GB, free: 43.51 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.242, allocations: 15.39 kB / 1.18 GB, free: 43.5 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004389/1.246, allocations: 3.027 MB / 1.183 GB, free: 41.64 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/1.248, allocations: 459.1 kB / 1.183 GB, free: 41.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002159/1.248, allocations: 27.53 kB / 1.184 GB, free: 41.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007319/1.248, allocations: 77.84 kB / 1.184 GB, free: 41.24 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003379/1.249, allocations: 121.5 kB / 1.184 GB, free: 41.17 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.558e-05/1.249, allocations: 34.38 kB / 1.184 GB, free: 41.16 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.00105/1.25, allocations: 0.9833 MB / 1.185 GB, free: 40.6 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.61e-07/1.25, allocations: 4 kB / 1.185 GB, free: 40.6 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002722/1.253, allocations: 0.7809 MB / 1.185 GB, free: 40.54 MB / 0.8575 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 (91): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002078/1.253, allocations: 147.9 kB / 1.186 GB, free: 40.41 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.004675/1.258, allocations: 4.015 MB / 1.19 GB, free: 37.64 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/1.258, allocations: 0 / 1.19 GB, free: 37.64 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.002898/1.261, allocations: 2.744 MB / 1.192 GB, free: 35.47 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002743/1.263, allocations: 0.7287 MB / 1.193 GB, free: 34.78 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/1.274, allocations: 7.097 MB / 1.2 GB, free: 27.61 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002434/1.276, allocations: 3.115 MB / 1.203 GB, free: 24.47 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001188/1.277, allocations: 454 kB / 1.203 GB, free: 24.02 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002475/1.278, allocations: 115.4 kB / 1.203 GB, free: 23.91 MB / 0.8575 GB Notification: Performance of SimCode: time 1.163e-06/1.278, allocations: 0 / 1.203 GB, free: 23.91 MB / 0.8575 GB Notification: Performance of Templates: time 0.05413/1.332, allocations: 35.72 MB / 1.238 GB, free: 4.648 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches