Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.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 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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",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.001288/0.001289, 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.001285/0.001286, allocations: 198.1 kB / 16.26 MB, free: 6.625 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.245/1.245, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.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.338/2.338, allocations: 437 MB / 0.7101 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 67.89 kB / 0.8689 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5236/0.5248, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.006846/0.5317, allocations: 6.159 MB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004189/0.5359, allocations: 3.165 MB / 1.026 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003998/0.5363, allocations: 27.81 kB / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002061/0.5384, allocations: 0.8797 MB / 1.027 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0009684/0.5394, allocations: 430 kB / 1.027 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009961/0.5404, allocations: 458.7 kB / 1.028 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001072/0.5415, allocations: 1.112 MB / 1.029 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008505/0.5424, allocations: 0.719 MB / 1.03 GB, free: 5.734 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004739/0.5428, allocations: 434.3 kB / 1.03 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005036/0.5434, allocations: 498.1 kB / 1.03 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.463e-05/0.5435, allocations: 56 kB / 1.03 GB, free: 4.766 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000698/0.5442, allocations: 491 kB / 1.031 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002551/0.5444, allocations: 291.2 kB / 1.031 GB, free: 4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003819/0.5448, allocations: 401.9 kB / 1.032 GB, free: 3.605 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001198/0.546, allocations: 1.203 MB / 1.033 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.546, allocations: 4 kB / 1.033 GB, free: 2.395 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.383e-06/0.546, allocations: 0 / 1.033 GB, free: 2.395 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.881e-05/0.5461, allocations: 0 / 1.033 GB, free: 2.395 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001554/0.5476, allocations: 1.06 MB / 1.034 GB, free: 1.285 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.5477, allocations: 8.031 kB / 1.034 GB, free: 1.277 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000118/0.5478, allocations: 114.7 kB / 1.034 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001442/0.5492, allocations: 223.6 kB / 1.034 GB, free: 0.9375 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007012/0.55, allocations: 0.5491 MB / 1.035 GB, free: 352 kB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.55, allocations: 45.67 kB / 1.035 GB, free: 308 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.148e-05/0.5501, allocations: 64.38 kB / 1.035 GB, free: 244 kB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.5514, allocations: 1.037 MB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.5514, allocations: 7.938 kB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.927e-05/0.5515, allocations: 27.98 kB / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.916e-05/0.5516, allocations: 69.27 kB / 1.036 GB, free: 14.99 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009365/0.5525, allocations: 0.6957 MB / 1.037 GB, free: 14.29 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004153/0.5567, allocations: 5.741 MB / 1.042 GB, free: 8.121 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007307/0.5574, allocations: 0.604 MB / 1.043 GB, free: 7.473 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006747/0.5581, allocations: 420.6 kB / 1.043 GB, free: 7.059 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.809e-05/0.5581, allocations: 12.67 kB / 1.043 GB, free: 7.047 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.5582, allocations: 34.56 kB / 1.043 GB, free: 7.004 MB / 0.795 GB Notification: Performance of pre-optimization done (n=41): time 1.703e-06/0.5582, allocations: 7.938 kB / 1.043 GB, free: 6.996 MB / 0.795 GB Notification: Performance of matching and sorting (n=42): time 0.003898/0.5621, allocations: 2.057 MB / 1.045 GB, free: 4.844 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.5621, allocations: 55.41 kB / 1.045 GB, free: 4.777 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000403/0.5625, allocations: 462.8 kB / 1.046 GB, free: 4.316 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.5626, allocations: 37.7 kB / 1.046 GB, free: 4.273 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/0.5628, allocations: 391 kB / 1.046 GB, free: 3.883 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.5629, allocations: 145.9 kB / 1.046 GB, free: 3.738 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.563, allocations: 110.2 kB / 1.046 GB, free: 3.625 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5631, allocations: 366.8 kB / 1.047 GB, free: 3.258 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003128/0.5635, allocations: 245.2 kB / 1.047 GB, free: 3.02 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000411/0.5639, allocations: 461 kB / 1.047 GB, free: 2.473 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007814/0.5647, allocations: 0.7556 MB / 1.048 GB, free: 1.621 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5647, allocations: 4 kB / 1.048 GB, free: 1.617 MB / 0.795 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001661/0.5663, allocations: 1.061 MB / 1.049 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.5664, allocations: 8 kB / 1.049 GB, free: 0.5273 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.5664, allocations: 8 kB / 1.049 GB, free: 0.5195 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009673/0.5674, allocations: 335.8 kB / 1.05 GB, free: 184 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.5676, allocations: 95.83 kB / 1.05 GB, free: 88 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006155/0.5738, allocations: 7.512 MB / 1.057 GB, free: 8.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003209/0.5741, allocations: 40.02 kB / 1.057 GB, free: 7.969 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.79e-05/0.5742, allocations: 24.19 kB / 1.057 GB, free: 7.945 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002495/0.5744, allocations: 251 kB / 1.057 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.05e-05/0.5745, allocations: 59.25 kB / 1.057 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.5761, allocations: 0.9277 MB / 1.058 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.5761, allocations: 4 kB / 1.058 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.5761, allocations: 4 kB / 1.058 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.5761, allocations: 3.984 kB / 1.058 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.5784, allocations: 1.712 MB / 1.06 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.5785, allocations: 3.984 kB / 1.06 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.5786, allocations: 43.91 kB / 1.06 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008886/0.5795, allocations: 323.5 kB / 1.06 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.882e-05/0.5795, allocations: 8 kB / 1.06 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006041/0.5856, allocations: 7.514 MB / 1.068 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5856, allocations: 0 / 1.068 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/0.5871, allocations: 1.011 MB / 1.069 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.5873, allocations: 180.4 kB / 1.069 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.444e-05/0.5873, allocations: 8 kB / 1.069 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.5876, allocations: 15.98 kB / 1.069 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.093e-05/0.5877, allocations: 47.88 kB / 1.069 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.658e-05/0.5877, allocations: 16 kB / 1.069 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002683/0.588, allocations: 314.8 kB / 1.069 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.588, allocations: 0 / 1.069 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006/0.5886, allocations: 200 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00169/0.5903, allocations: 1.555 MB / 1.071 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001623/0.5919, allocations: 1.246 MB / 1.072 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5919, allocations: 0 / 1.072 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.593, allocations: 0.866 MB / 1.073 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008597/0.5939, allocations: 208.3 kB / 1.073 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007368/0.6013, allocations: 6.289 MB / 1.079 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/0.6017, allocations: 0.9921 MB / 1.08 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002703/0.602, allocations: 101.3 kB / 1.08 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002269/0.6023, allocations: 227.4 kB / 1.081 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of SimCode: time 4.11e-07/0.6023, allocations: 4 kB / 1.081 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.814/5.416, allocations: 15.27 MB / 1.095 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002253/5.417, allocations: 238 kB / 1.096 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.59/8.006, allocations: 0 / 1.096 GB, free: 15.39 MB / 0.8575 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches