Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_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.001241/0.001241, 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.001299/0.001299, allocations: 198.1 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.305/1.305, allocations: 222.9 MB / 239.8 MB, free: 4.637 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.41/2.41, allocations: 437 MB / 0.7099 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001248, allocations: 59.91 kB / 0.8687 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5472/0.5485, allocations: 151.6 MB / 1.017 GB, free: 2.785 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03093/0.5794, allocations: 32.31 MB / 1.048 GB, free: 2.375 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01459/0.594, allocations: 10.28 MB / 1.058 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00386/0.598, allocations: 135.2 kB / 1.058 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.008307/0.6063, allocations: 3.48 MB / 1.062 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.004433/0.6108, allocations: 1.735 MB / 1.064 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004634/0.6154, allocations: 1.932 MB / 1.065 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.009733/0.6252, allocations: 10.58 MB / 1.076 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01375/0.6389, allocations: 10.62 MB / 1.086 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003989/0.643, allocations: 2.693 MB / 1.089 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005011/0.648, allocations: 3.555 MB / 1.092 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001617/0.6496, allocations: 452 kB / 1.093 GB, free: 4.73 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004469/0.6541, allocations: 1.887 MB / 1.095 GB, free: 2.84 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003165/0.6573, allocations: 2.339 MB / 1.097 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.004568/0.6619, allocations: 2.664 MB / 1.099 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.009331/0.6712, allocations: 9.987 MB / 1.109 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.6712, allocations: 0 / 1.109 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.492e-06/0.6712, allocations: 0 / 1.109 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0002052/0.6715, allocations: 0 / 1.109 GB, free: 3.805 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.008662/0.6801, allocations: 4.994 MB / 1.114 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.6802, allocations: 8.031 kB / 1.114 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000887/0.6811, allocations: 0.682 MB / 1.115 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004948/0.686, allocations: 0.959 MB / 1.116 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00445/0.6905, allocations: 2.855 MB / 1.118 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.6907, allocations: 345.7 kB / 1.119 GB, free: 9.816 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006519/0.6914, allocations: 472.1 kB / 1.119 GB, free: 9.355 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/0.7034, allocations: 7.671 MB / 1.127 GB, free: 1.336 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001124/0.7036, allocations: 23.78 kB / 1.127 GB, free: 1.312 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000448/0.704, allocations: 200 kB / 1.127 GB, free: 1.117 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003736/0.7044, allocations: 312.9 kB / 1.127 GB, free: 0.8086 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009151/0.7136, allocations: 5.71 MB / 1.133 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03416/0.7477, allocations: 35.1 MB / 1.167 GB, free: 4.777 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002812/0.7506, allocations: 2.148 MB / 1.169 GB, free: 2.516 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001595/0.7522, allocations: 1.266 MB / 1.17 GB, free: 1.254 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.7524, allocations: 17.3 kB / 1.17 GB, free: 1.234 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.7524, allocations: 47.81 kB / 1.17 GB, free: 1.18 MB / 0.92 GB Notification: Performance of pre-optimization done (n=133): time 3.477e-06/0.7524, allocations: 3.938 kB / 1.17 GB, free: 1.176 MB / 0.92 GB Notification: Performance of matching and sorting (n=136): time 0.01355/0.766, allocations: 7.092 MB / 1.177 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.766, allocations: 68.72 kB / 1.177 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002267/0.7683, allocations: 1.48 MB / 1.179 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.147e-05/0.7684, allocations: 49.7 kB / 1.179 GB, free: 8.148 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.7697, allocations: 2.008 MB / 1.181 GB, free: 6.113 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004362/0.7701, allocations: 485.1 kB / 1.181 GB, free: 5.633 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000558/0.7707, allocations: 347.1 kB / 1.182 GB, free: 5.289 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.849e-05/0.7708, allocations: 301.1 kB / 1.182 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.7721, allocations: 0.9135 MB / 1.183 GB, free: 4.078 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001727/0.7739, allocations: 1.597 MB / 1.184 GB, free: 2.168 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003123/0.777, allocations: 2.733 MB / 1.187 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.701e-05/0.777, allocations: 8 kB / 1.187 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.005953/0.783, allocations: 3.53 MB / 1.191 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.783, allocations: 16 kB / 1.191 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.491e-05/0.7831, allocations: 28.09 kB / 1.191 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/0.7857, allocations: 0.9077 MB / 1.191 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.7868, allocations: 343.4 kB / 1.192 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01909/0.8059, allocations: 21.22 MB / 1.213 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.8074, allocations: 108 kB / 1.213 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002886/0.8077, allocations: 84.06 kB / 1.213 GB, free: 3.199 MB / 0.9669 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 (185): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002843/0.8106, allocations: 1.616 MB / 1.214 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004956/0.8111, allocations: 201.7 kB / 1.214 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005247/0.8163, allocations: 2.998 MB / 1.217 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.8163, allocations: 12 kB / 1.217 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.108e-05/0.8164, allocations: 12 kB / 1.217 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.8164, allocations: 7.969 kB / 1.217 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/0.8288, allocations: 7.336 MB / 1.225 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.8288, allocations: 4 kB / 1.225 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007403/0.8296, allocations: 175.7 kB / 1.225 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002413/0.832, allocations: 0.8303 MB / 1.226 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.8321, allocations: 31.98 kB / 1.226 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4622/1.294, allocations: 20.29 MB / 1.245 GB, free: 207 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/1.294, allocations: 5.234 kB / 1.245 GB, free: 207 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005225/1.3, allocations: 3.022 MB / 1.248 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007828/1.3, allocations: 463.4 kB / 1.249 GB, free: 206.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002154/1.301, allocations: 28.92 kB / 1.249 GB, free: 206.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007175/1.301, allocations: 76 kB / 1.249 GB, free: 206.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003544/1.302, allocations: 127.5 kB / 1.249 GB, free: 206.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.893e-05/1.302, allocations: 36.69 kB / 1.249 GB, free: 206.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00135/1.303, allocations: 0.9763 MB / 1.25 GB, free: 206.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.4e-07/1.303, allocations: 3.312 kB / 1.25 GB, free: 206.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00256/1.306, allocations: 0.7901 MB / 1.251 GB, free: 206.4 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (91): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004998/1.311, allocations: 3.613 MB / 1.254 GB, free: 205.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006182/1.317, allocations: 4.013 MB / 1.258 GB, free: 203 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/1.317, allocations: 1.062 kB / 1.258 GB, free: 203 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003624/1.321, allocations: 2.735 MB / 1.261 GB, free: 201.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002864/1.324, allocations: 0.6648 MB / 1.262 GB, free: 201 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03399/1.358, allocations: 25.76 MB / 1.287 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004017/1.362, allocations: 3.11 MB / 1.29 GB, free: 184.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001361/1.363, allocations: 458.3 kB / 1.29 GB, free: 184.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00154/1.364, allocations: 1.534 MB / 1.292 GB, free: 183 MB / 0.9981 GB Notification: Performance of SimCode: time 8.41e-07/1.365, allocations: 0 / 1.292 GB, free: 183 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06501/1.43, allocations: 59.02 MB / 1.349 GB, free: 129 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001258/1.43, allocations: 246.1 kB / 1.35 GB, free: 128.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.654/4.084, allocations: 0 / 1.35 GB, free: 128.8 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches