Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001592/0.001591, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002221/0.002221, allocations: 195.4 kB / 16.26 MB, free: 6.621 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.433/1.433, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.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.36/2.36, allocations: 390.2 MB / 0.6644 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.001601, allocations: 67.89 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6558/0.6574, allocations: 140.4 MB / 0.9492 GB, free: 9.055 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC): time 0.03769/0.6951, allocations: 37.26 MB / 0.9856 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0202/0.7154, allocations: 12.93 MB / 0.9983 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003968/0.7194, allocations: 155.1 kB / 0.9984 GB, free: 15.56 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.009161/0.7286, allocations: 3.628 MB / 1.002 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.006843/0.7354, allocations: 2.298 MB / 1.004 GB, free: 9.621 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.005986/0.7414, allocations: 2.472 MB / 1.007 GB, free: 7.152 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0106/0.752, allocations: 9.61 MB / 1.016 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01703/0.7691, allocations: 12.75 MB / 1.028 GB, free: 0.6367 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005926/0.775, allocations: 4.061 MB / 1.032 GB, free: 12.56 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006712/0.7818, allocations: 4.58 MB / 1.037 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.002919/0.7847, allocations: 0.7695 MB / 1.038 GB, free: 7.199 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00907/0.7938, allocations: 1.791 MB / 1.039 GB, free: 5.406 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.007411/0.8012, allocations: 3.037 MB / 1.042 GB, free: 2.363 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.007719/0.8089, allocations: 3.587 MB / 1.046 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01347/0.8224, allocations: 11.87 MB / 1.057 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.8225, allocations: 0 / 1.057 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.664e-06/0.8225, allocations: 0 / 1.057 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0003442/0.8228, allocations: 0 / 1.057 GB, free: 2.855 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: 1394 * Number of variables: 1394 Notification: Performance of Generate backend data structure: time 0.01988/0.8427, allocations: 6.351 MB / 1.064 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.8428, allocations: 8.031 kB / 1.064 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002364/0.8451, allocations: 0.7558 MB / 1.064 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009163/0.8543, allocations: 1.297 MB / 1.066 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007417/0.8618, allocations: 3.568 MB / 1.069 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003304/0.8621, allocations: 386.5 kB / 1.07 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001697/0.8638, allocations: 0.4885 MB / 1.07 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01803/0.8819, allocations: 8.894 MB / 1.079 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00023/0.8821, allocations: 31.62 kB / 1.079 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001377/0.8835, allocations: 219.9 kB / 1.079 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002198/0.8857, allocations: 0.6382 MB / 1.08 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01322/0.899, allocations: 7.014 MB / 1.086 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05016/0.9491, allocations: 40.32 MB / 1.126 GB, free: 9.125 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004091/0.9533, allocations: 2.902 MB / 1.129 GB, free: 6.207 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003622/0.9569, allocations: 2.659 MB / 1.131 GB, free: 3.539 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002719/0.9572, allocations: 30.08 kB / 1.131 GB, free: 3.508 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.615e-05/0.9573, allocations: 72.59 kB / 1.131 GB, free: 3.426 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=265): time 4.649e-06/0.9573, allocations: 0 / 1.131 GB, free: 3.426 MB / 0.8887 GB Notification: Performance of matching and sorting (n=424): time 0.2816/1.239, allocations: 74.71 MB / 1.204 GB, free: 8.055 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/1.239, allocations: 98.67 kB / 1.204 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004368/1.243, allocations: 2.367 MB / 1.207 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.001049/1.245, allocations: 97.7 kB / 1.207 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001814/1.246, allocations: 2.341 MB / 1.209 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.002282/1.249, allocations: 1.44 MB / 1.21 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002737/1.251, allocations: 0.7138 MB / 1.211 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.947e-05/1.251, allocations: 305.1 kB / 1.211 GB, free: 0.6133 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004916/1.256, allocations: 2.995 MB / 1.214 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005657/1.262, allocations: 3.843 MB / 1.218 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/1.274, allocations: 7.387 MB / 1.225 GB, free: 1.719 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.598e-05/1.274, allocations: 4 kB / 1.225 GB, free: 1.715 MB / 0.9825 GB Notification: Performance of matching and sorting (n=551) (initialization): time 0.03123/1.305, allocations: 12.56 MB / 1.238 GB, free: 5.051 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.514e-05/1.305, allocations: 16 kB / 1.238 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.24e-05/1.305, allocations: 20 kB / 1.238 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02314/1.328, allocations: 6.068 MB / 1.244 GB, free: 14.88 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002392/1.331, allocations: 495.2 kB / 1.244 GB, free: 14.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5208/1.851, allocations: 73.04 MB / 1.315 GB, free: 235.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003662/1.855, allocations: 216.8 kB / 1.316 GB, free: 235 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004923/1.856, allocations: 150 kB / 1.316 GB, free: 235 MB / 1.014 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 (269): * Single equations (assignments): 245 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 24 systems {(2,2,100.0%), (1,1,100.0%), (2,2,100.0%), (1,1,100.0%), (2,2,100.0%), (1,1,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00269/1.858, allocations: 1.998 MB / 1.318 GB, free: 234.1 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007569/1.859, allocations: 390.6 kB / 1.318 GB, free: 234.1 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0245/1.884, allocations: 12.23 MB / 1.33 GB, free: 228.4 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-05/1.884, allocations: 46.16 kB / 1.33 GB, free: 228.4 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001288/1.884, allocations: 46.47 kB / 1.33 GB, free: 228.4 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.651e-05/1.884, allocations: 23.89 kB / 1.33 GB, free: 228.4 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03393/1.918, allocations: 19.13 MB / 1.349 GB, free: 213.1 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.98e-05/1.918, allocations: 8.938 kB / 1.349 GB, free: 213.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001449/1.919, allocations: 291.5 kB / 1.349 GB, free: 212.8 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0191/1.938, allocations: 5.615 MB / 1.355 GB, free: 207.2 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008057/1.939, allocations: 80 kB / 1.355 GB, free: 207.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06388/2.003, allocations: 70.67 MB / 1.424 GB, free: 133.1 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/2.003, allocations: 11.94 kB / 1.424 GB, free: 133.1 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02855/2.032, allocations: 15.62 MB / 1.439 GB, free: 117.3 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0024/2.034, allocations: 1.036 MB / 1.44 GB, free: 116.2 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007121/2.035, allocations: 87.98 kB / 1.44 GB, free: 116.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002447/2.037, allocations: 215.7 kB / 1.44 GB, free: 115.9 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001279/2.039, allocations: 406.2 kB / 1.441 GB, free: 115.5 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002673/2.039, allocations: 108 kB / 1.441 GB, free: 115.4 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001689/2.041, allocations: 1.564 MB / 1.442 GB, free: 113.9 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.01e-07/2.041, allocations: 0 / 1.442 GB, free: 113.9 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.004921/2.046, allocations: 1.859 MB / 1.444 GB, free: 112 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[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 (145): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 24 systems {(2,8,100.0%), (2,8,100.0%), (2,8,100.0%), (3,15,100.0%), (3,15,100.0%), (3,15,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,15,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02676/2.072, allocations: 16.28 MB / 1.46 GB, free: 95.48 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02354/2.096, allocations: 14.99 MB / 1.475 GB, free: 80.22 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/2.096, allocations: 8.312 kB / 1.475 GB, free: 80.21 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.01216/2.108, allocations: 8.36 MB / 1.483 GB, free: 71.55 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005147/2.113, allocations: 1.179 MB / 1.484 GB, free: 70.41 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1031/2.217, allocations: 62.71 MB / 1.545 GB, free: 3.609 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0047/2.221, allocations: 4.093 MB / 1.549 GB, free: 15.48 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.002598/2.224, allocations: 0.6708 MB / 1.55 GB, free: 14.8 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002641/2.227, allocations: 2.128 MB / 1.552 GB, free: 12.68 MB / 1.029 GB Notification: Performance of SimCode: time 1.052e-06/2.227, allocations: 0 / 1.552 GB, free: 12.68 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8892/3.116, allocations: 152.2 MB / 1.7 GB, free: 387.8 MB / 1.154 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001343/3.116, allocations: 243.8 kB / 1.701 GB, free: 387.5 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.444/8.559, allocations: 4.156 kB / 1.701 GB, free: 387.5 MB / 1.154 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches