Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_9_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_9_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.001142/0.001142, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001831/0.001831, allocations: 197.2 kB / 16.14 MB, free: 6.711 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.312/1.312, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.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.394/2.394, allocations: 390.2 MB / 0.6643 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 67.83 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.642/0.6435, allocations: 140.4 MB / 0.9491 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.005893/0.6494, allocations: 6.155 MB / 0.9551 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003867/0.6533, allocations: 3.201 MB / 0.9582 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003577/0.6537, allocations: 28.03 kB / 0.9582 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001805/0.6555, allocations: 0.8651 MB / 0.9591 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008623/0.6564, allocations: 449.4 kB / 0.9595 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008891/0.6572, allocations: 448.4 kB / 0.9599 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001197/0.6585, allocations: 1.481 MB / 0.9614 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008667/0.6593, allocations: 0.6207 MB / 0.962 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005007/0.6598, allocations: 389.1 kB / 0.9623 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005029/0.6604, allocations: 492.4 kB / 0.9628 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.726e-05/0.6604, allocations: 40.12 kB / 0.9629 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009731/0.6614, allocations: 0.5854 MB / 0.9634 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002903/0.6617, allocations: 269.2 kB / 0.9637 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003653/0.6621, allocations: 391.9 kB / 0.9641 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001124/0.6632, allocations: 1.18 MB / 0.9652 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.6632, allocations: 0.9688 kB / 0.9652 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6633, allocations: 4 kB / 0.9652 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.316e-05/0.6633, allocations: 0 / 0.9652 GB, free: 13.38 MB / 0.7325 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.001556/0.6648, allocations: 1.058 MB / 0.9662 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.6649, allocations: 9.875 kB / 0.9663 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/0.665, allocations: 116.6 kB / 0.9664 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001512/0.6665, allocations: 225.4 kB / 0.9666 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000725/0.6673, allocations: 0.539 MB / 0.9671 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.658e-05/0.6673, allocations: 46.8 kB / 0.9672 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.6674, allocations: 65.36 kB / 0.9672 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.6688, allocations: 1.033 MB / 0.9682 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.6688, allocations: 7.75 kB / 0.9682 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.871e-05/0.6689, allocations: 32.7 kB / 0.9683 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-05/0.669, allocations: 66.02 kB / 0.9683 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.67, allocations: 0.691 MB / 0.969 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004705/0.6747, allocations: 5.76 MB / 0.9746 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008378/0.6756, allocations: 0.5955 MB / 0.9752 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007429/0.6763, allocations: 422.7 kB / 0.9756 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.6764, allocations: 4.375 kB / 0.9756 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.6764, allocations: 44.94 kB / 0.9757 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=41): time 2.124e-06/0.6764, allocations: 0 / 0.9757 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.004216/0.6806, allocations: 2.057 MB / 0.9777 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.6807, allocations: 59.22 kB / 0.9777 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004743/0.6811, allocations: 470.3 kB / 0.9782 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.6812, allocations: 31.95 kB / 0.9782 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/0.6814, allocations: 381.6 kB / 0.9786 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.6815, allocations: 149.5 kB / 0.9787 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.6817, allocations: 108.9 kB / 0.9788 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.6818, allocations: 371.4 kB / 0.9792 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.6822, allocations: 244.1 kB / 0.9794 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004588/0.6826, allocations: 459.8 kB / 0.9798 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008693/0.6835, allocations: 0.7518 MB / 0.9806 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.6835, allocations: 3.938 kB / 0.9806 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001792/0.6853, allocations: 1.066 MB / 0.9816 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.6853, allocations: 8 kB / 0.9816 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.6854, allocations: 8 kB / 0.9816 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009998/0.6864, allocations: 331.3 kB / 0.9819 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002912/0.6867, allocations: 95.81 kB / 0.982 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006217/0.6929, allocations: 6.951 MB / 0.9888 GB, free: 7.754 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003985/0.6933, allocations: 28.03 kB / 0.9889 GB, free: 7.727 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.113e-05/0.6934, allocations: 28 kB / 0.9889 GB, free: 7.699 MB / 0.7481 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.0003491/0.6937, allocations: 253.5 kB / 0.9891 GB, free: 7.441 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.85e-05/0.6938, allocations: 59.25 kB / 0.9892 GB, free: 7.383 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.6955, allocations: 0.9081 MB / 0.9901 GB, free: 6.449 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.6955, allocations: 7.938 kB / 0.9901 GB, free: 6.441 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.6955, allocations: 8 kB / 0.9901 GB, free: 6.434 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.6955, allocations: 7.984 kB / 0.9901 GB, free: 6.426 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002558/0.6981, allocations: 1.704 MB / 0.9918 GB, free: 4.633 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.6981, allocations: 4.031 kB / 0.9918 GB, free: 4.629 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.6983, allocations: 47.91 kB / 0.9918 GB, free: 4.582 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009527/0.6992, allocations: 327.2 kB / 0.9921 GB, free: 4.25 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.6993, allocations: 8 kB / 0.9921 GB, free: 4.242 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006125/0.7054, allocations: 6.939 MB / 0.9989 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.7054, allocations: 0 / 0.9989 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.7071, allocations: 1.018 MB / 0.9999 GB, free: 11.7 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002887/0.7074, allocations: 172.4 kB / 1 GB, free: 11.52 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.7075, allocations: 11.98 kB / 1 GB, free: 11.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003061/0.7078, allocations: 19.98 kB / 1 GB, free: 11.48 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.7079, allocations: 51.81 kB / 1 GB, free: 11.43 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/0.708, allocations: 12 kB / 1 GB, free: 11.42 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003367/0.7083, allocations: 306.9 kB / 1 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7083, allocations: 0 / 1 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008364/0.7091, allocations: 200 kB / 1.001 GB, free: 10.93 MB / 0.7637 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.001873/0.711, allocations: 1.559 MB / 1.002 GB, free: 9.312 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00178/0.7128, allocations: 1.207 MB / 1.003 GB, free: 8.055 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.7128, allocations: 0 / 1.003 GB, free: 8.055 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.714, allocations: 0.866 MB / 1.004 GB, free: 7.137 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009262/0.7149, allocations: 185.2 kB / 1.004 GB, free: 6.957 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00822/0.7231, allocations: 6.274 MB / 1.01 GB, free: 364 kB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005649/0.7237, allocations: 1.004 MB / 1.011 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000308/0.724, allocations: 97.19 kB / 1.012 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002527/0.7243, allocations: 227.4 kB / 1.012 GB, free: 15 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.7243, allocations: 0 / 1.012 GB, free: 15 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.7527, allocations: 14.82 MB / 1.026 GB, free: 484 kB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002968/0.753, allocations: 248.5 kB / 1.026 GB, free: 220 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.013/2.766, allocations: 2.875 kB / 1.026 GB, free: 220 kB / 0.7794 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches