Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",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.001639/0.001639, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002071/0.002071, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.422 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.357/2.357, allocations: 390.2 MB / 0.6647 GB, free: 456 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 59.91 kB / 0.8127 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5663/0.5676, allocations: 140.4 MB / 0.9497 GB, free: 9.055 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04103/0.6087, allocations: 41.2 MB / 0.99 GB, free: 8.547 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02398/0.6327, allocations: 15.09 MB / 1.005 GB, free: 9.418 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004594/0.6373, allocations: 187.1 kB / 1.005 GB, free: 9.234 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.01037/0.6478, allocations: 4.455 MB / 1.009 GB, free: 4.766 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.007292/0.6551, allocations: 2.798 MB / 1.012 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.006679/0.6618, allocations: 3.152 MB / 1.015 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01318/0.675, allocations: 11.4 MB / 1.026 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01559/0.6906, allocations: 12.64 MB / 1.039 GB, free: 6.59 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006904/0.6975, allocations: 4.787 MB / 1.043 GB, free: 1.789 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008592/0.7061, allocations: 5.394 MB / 1.048 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002442/0.7086, allocations: 0.9492 MB / 1.049 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004998/0.7136, allocations: 2.033 MB / 1.051 GB, free: 9.395 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.003806/0.7174, allocations: 3.692 MB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.005859/0.7233, allocations: 4.299 MB / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01408/0.7374, allocations: 14.18 MB / 1.073 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.747e-06/0.7375, allocations: 0 / 1.073 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.883e-06/0.7375, allocations: 3.938 kB / 1.073 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0003878/0.7379, allocations: 4 kB / 1.073 GB, free: 3.148 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: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.0188/0.7567, allocations: 7.589 MB / 1.08 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.7567, allocations: 8.031 kB / 1.08 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001933/0.7587, allocations: 0.8994 MB / 1.081 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009801/0.7685, allocations: 1.515 MB / 1.083 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009126/0.7776, allocations: 4.209 MB / 1.087 GB, free: 4.75 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003961/0.778, allocations: 456.5 kB / 1.087 GB, free: 4.301 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001834/0.7799, allocations: 0.5977 MB / 1.088 GB, free: 3.703 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02035/0.8002, allocations: 10.69 MB / 1.098 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002272/0.8005, allocations: 27.69 kB / 1.098 GB, free: 8.613 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001548/0.8021, allocations: 267.9 kB / 1.099 GB, free: 8.352 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003136/0.8052, allocations: 0.769 MB / 1.099 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01726/0.8225, allocations: 8.572 MB / 1.108 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0609/0.8834, allocations: 46.84 MB / 1.154 GB, free: 12.38 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005932/0.8894, allocations: 4.304 MB / 1.158 GB, free: 8.066 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00521/0.8946, allocations: 3.708 MB / 1.161 GB, free: 4.348 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003009/0.8949, allocations: 34.78 kB / 1.161 GB, free: 4.312 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.489e-05/0.895, allocations: 81.2 kB / 1.161 GB, free: 4.223 MB / 0.92 GB Notification: Performance of pre-optimization done (n=353): time 6.031e-06/0.895, allocations: 0 / 1.161 GB, free: 4.223 MB / 0.92 GB Notification: Performance of matching and sorting (n=578): time 0.9567/1.852, allocations: 122.8 MB / 1.281 GB, free: 264.9 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.244e-05/1.852, allocations: 123.1 kB / 1.282 GB, free: 264.8 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003761/1.856, allocations: 2.676 MB / 1.284 GB, free: 263.9 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.001167/1.857, allocations: 123.2 kB / 1.284 GB, free: 263.8 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001737/1.859, allocations: 2.686 MB / 1.287 GB, free: 261.7 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.002269/1.861, allocations: 1.946 MB / 1.289 GB, free: 260.2 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001779/1.863, allocations: 0.9243 MB / 1.29 GB, free: 259.8 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 4.483e-05/1.863, allocations: 306.5 kB / 1.29 GB, free: 259.5 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005283/1.868, allocations: 4.08 MB / 1.294 GB, free: 257.8 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005733/1.874, allocations: 5.017 MB / 1.299 GB, free: 255.1 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/1.886, allocations: 9.85 MB / 1.308 GB, free: 249.9 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.826e-05/1.886, allocations: 7.875 kB / 1.308 GB, free: 249.9 MB / 1.014 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03603/1.922, allocations: 17 MB / 1.325 GB, free: 240.4 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.554e-05/1.922, allocations: 15.16 kB / 1.325 GB, free: 240.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.261e-05/1.922, allocations: 26.78 kB / 1.325 GB, free: 240.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02959/1.952, allocations: 9.15 MB / 1.334 GB, free: 231.6 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/1.955, allocations: 0.5226 MB / 1.335 GB, free: 231.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08751/2.042, allocations: 77.02 MB / 1.41 GB, free: 152.5 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005299/2.047, allocations: 279.8 kB / 1.41 GB, free: 152.2 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009705/2.048, allocations: 188 kB / 1.41 GB, free: 152.1 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004567/2.053, allocations: 2.421 MB / 1.413 GB, free: 149.6 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/2.054, allocations: 470.5 kB / 1.413 GB, free: 149.2 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03365/2.088, allocations: 16.82 MB / 1.429 GB, free: 132.2 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-05/2.088, allocations: 56 kB / 1.429 GB, free: 132.1 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001579/2.088, allocations: 68 kB / 1.43 GB, free: 132.1 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.052e-05/2.088, allocations: 35.72 kB / 1.43 GB, free: 132 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04633/2.135, allocations: 25.66 MB / 1.455 GB, free: 106.2 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.791e-05/2.135, allocations: 4.938 kB / 1.455 GB, free: 106.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00174/2.136, allocations: 331.4 kB / 1.455 GB, free: 105.8 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02547/2.162, allocations: 8.338 MB / 1.463 GB, free: 97.45 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007136/2.163, allocations: 112 kB / 1.463 GB, free: 97.34 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08413/2.247, allocations: 73.88 MB / 1.535 GB, free: 21.92 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/2.247, allocations: 8 kB / 1.535 GB, free: 21.91 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03868/2.286, allocations: 21.56 MB / 1.556 GB, free: 15.99 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005331/2.291, allocations: 1.362 MB / 1.558 GB, free: 14.61 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/2.292, allocations: 103.9 kB / 1.558 GB, free: 14.51 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003691/2.296, allocations: 291.6 kB / 1.558 GB, free: 14.22 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001921/2.298, allocations: 0.5258 MB / 1.559 GB, free: 13.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004039/2.298, allocations: 140 kB / 1.559 GB, free: 13.55 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002665/2.301, allocations: 1.776 MB / 1.561 GB, free: 11.79 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.5e-07/2.301, allocations: 0 / 1.561 GB, free: 11.79 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.007894/2.309, allocations: 2.468 MB / 1.563 GB, free: 9.32 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (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],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.04365/2.353, allocations: 22.28 MB / 1.585 GB, free: 2.688 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.04804/2.401, allocations: 18.66 MB / 1.603 GB, free: 15.85 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/2.401, allocations: 4 kB / 1.603 GB, free: 15.85 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.01851/2.419, allocations: 9.355 MB / 1.612 GB, free: 6.352 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007324/2.427, allocations: 1.374 MB / 1.613 GB, free: 5.02 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1469/2.574, allocations: 79.87 MB / 1.691 GB, free: 0.7266 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4336/3.007, allocations: 4.895 MB / 1.696 GB, free: 385.4 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.003153/3.01, allocations: 0.7495 MB / 1.697 GB, free: 385.4 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002687/3.013, allocations: 2.608 MB / 1.699 GB, free: 385.4 MB / 1.154 GB Notification: Performance of SimCode: time 8.72e-07/3.013, allocations: 0 / 1.699 GB, free: 385.4 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3314/3.344, allocations: 196.9 MB / 1.892 GB, free: 231.9 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.63/19.97, allocations: 19.7 kB / 1.892 GB, free: 231.9 MB / 1.154 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches