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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001024/0.001024, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00106/0.00106, allocations: 195.7 kB / 16.14 MB, free: 6.691 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.278/1.278, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.382/2.382, allocations: 437 MB / 0.71 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.91 kB / 0.8687 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6365/0.6378, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.007153/0.645, allocations: 6.163 MB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004472/0.6495, allocations: 3.204 MB / 1.026 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005332/0.65, allocations: 27.81 kB / 1.026 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002055/0.6521, allocations: 0.8619 MB / 1.027 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0009915/0.6531, allocations: 446 kB / 1.027 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.6541, allocations: 463.1 kB / 1.028 GB, free: 7.641 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001361/0.6555, allocations: 1.467 MB / 1.029 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008802/0.6564, allocations: 0.6307 MB / 1.03 GB, free: 5.535 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005816/0.657, allocations: 390.3 kB / 1.03 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006416/0.6576, allocations: 482.1 kB / 1.03 GB, free: 4.68 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.6577, allocations: 48 kB / 1.031 GB, free: 4.633 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008914/0.6586, allocations: 0.5847 MB / 1.031 GB, free: 4.047 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002934/0.6589, allocations: 279.2 kB / 1.031 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0004215/0.6594, allocations: 381.9 kB / 1.032 GB, free: 3.398 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001206/0.6606, allocations: 1.18 MB / 1.033 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.6606, allocations: 0 / 1.033 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.22e-07/0.6606, allocations: 0 / 1.033 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.82e-05/0.6606, allocations: 0 / 1.033 GB, free: 2.215 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.00163/0.6623, allocations: 1.064 MB / 1.034 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.6623, allocations: 12.03 kB / 1.034 GB, free: 1.09 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001321/0.6625, allocations: 110.7 kB / 1.034 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001435/0.6639, allocations: 231.6 kB / 1.034 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000705/0.6646, allocations: 0.5375 MB / 1.035 GB, free: 168 kB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.6647, allocations: 49.67 kB / 1.035 GB, free: 120 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.087e-05/0.6648, allocations: 64.36 kB / 1.035 GB, free: 56 kB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.6661, allocations: 1.03 MB / 1.036 GB, free: 14.92 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.09e-05/0.6661, allocations: 7.938 kB / 1.036 GB, free: 14.91 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.558e-05/0.6662, allocations: 31.98 kB / 1.036 GB, free: 14.88 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.61e-05/0.6663, allocations: 69.27 kB / 1.036 GB, free: 14.81 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009942/0.6673, allocations: 0.6996 MB / 1.037 GB, free: 14.11 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004403/0.6717, allocations: 5.741 MB / 1.042 GB, free: 7.941 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007721/0.6725, allocations: 0.6007 MB / 1.043 GB, free: 7.297 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007008/0.6732, allocations: 420.6 kB / 1.043 GB, free: 6.883 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.6732, allocations: 4.688 kB / 1.043 GB, free: 6.879 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.6733, allocations: 46.48 kB / 1.043 GB, free: 6.824 MB / 0.795 GB Notification: Performance of pre-optimization done (n=41): time 1.512e-06/0.6733, allocations: 3.938 kB / 1.043 GB, free: 6.82 MB / 0.795 GB Notification: Performance of matching and sorting (n=42): time 0.004187/0.6775, allocations: 2.057 MB / 1.045 GB, free: 4.668 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.6775, allocations: 55.41 kB / 1.045 GB, free: 4.602 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004799/0.678, allocations: 466.8 kB / 1.046 GB, free: 4.133 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.678, allocations: 33.7 kB / 1.046 GB, free: 4.094 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002371/0.6783, allocations: 391 kB / 1.046 GB, free: 3.707 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.6784, allocations: 145.9 kB / 1.046 GB, free: 3.562 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.6786, allocations: 110.2 kB / 1.046 GB, free: 3.449 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.6787, allocations: 370.8 kB / 1.047 GB, free: 3.078 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003366/0.679, allocations: 241.2 kB / 1.047 GB, free: 2.844 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004571/0.6795, allocations: 465.4 kB / 1.048 GB, free: 2.293 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008632/0.6804, allocations: 0.7595 MB / 1.048 GB, free: 1.438 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.6804, allocations: 4 kB / 1.048 GB, free: 1.434 MB / 0.795 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001754/0.6822, allocations: 1.061 MB / 1.049 GB, free: 360 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.6822, allocations: 8.875 kB / 1.049 GB, free: 352 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.6822, allocations: 4 kB / 1.049 GB, free: 348 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/0.6832, allocations: 335.1 kB / 1.05 GB, free: 0 / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002932/0.6835, allocations: 99.81 kB / 1.05 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006205/0.6897, allocations: 6.946 MB / 1.057 GB, free: 8.418 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.6901, allocations: 28.03 kB / 1.057 GB, free: 8.391 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.6901, allocations: 28 kB / 1.057 GB, free: 8.363 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.0002675/0.6904, allocations: 247 kB / 1.057 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-05/0.6905, allocations: 59.95 kB / 1.057 GB, free: 8.055 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/0.6921, allocations: 0.9198 MB / 1.058 GB, free: 7.109 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.6921, allocations: 7.984 kB / 1.058 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.6921, allocations: 11.94 kB / 1.058 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.6921, allocations: 4 kB / 1.058 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002453/0.6946, allocations: 1.716 MB / 1.059 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.6946, allocations: 4 kB / 1.059 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001531/0.6948, allocations: 39.91 kB / 1.059 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009267/0.6957, allocations: 323.3 kB / 1.06 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.989e-05/0.6957, allocations: 8 kB / 1.06 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00599/0.7017, allocations: 6.935 MB / 1.067 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.7017, allocations: 7.984 kB / 1.067 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.7033, allocations: 1.015 MB / 1.068 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.7035, allocations: 176.4 kB / 1.068 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.731e-05/0.7036, allocations: 8 kB / 1.068 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.7038, allocations: 23.98 kB / 1.068 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.369e-05/0.7039, allocations: 43.81 kB / 1.068 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.704, allocations: 12.28 kB / 1.068 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002944/0.7043, allocations: 318.9 kB / 1.068 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7043, allocations: 0 / 1.068 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006505/0.7049, allocations: 195.9 kB / 1.068 GB, free: 11.59 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.001798/0.7067, allocations: 1.564 MB / 1.07 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001647/0.7084, allocations: 1.203 MB / 1.071 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.7084, allocations: 0 / 1.071 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.7095, allocations: 0.8581 MB / 1.072 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009106/0.7104, allocations: 193 kB / 1.072 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007777/0.7182, allocations: 6.279 MB / 1.078 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005363/0.7188, allocations: 1.004 MB / 1.079 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002928/0.7191, allocations: 97.19 kB / 1.079 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.7193, allocations: 231.4 kB / 1.079 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of SimCode: time 5.51e-07/0.7193, allocations: 0 / 1.079 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8436/1.563, allocations: 14.82 MB / 1.094 GB, free: 1.125 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002998/1.563, allocations: 248.7 kB / 1.094 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.225/3.789, allocations: 0 / 1.094 GB, free: 0.8633 MB / 0.8419 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