Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.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.ThreePhasesUnbalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",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.001187/0.001187, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001244/0.001244, allocations: 192.8 kB / 16.25 MB, free: 6.641 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.221/1.221, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.42/2.42, allocations: 437 MB / 0.7101 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.91 kB / 0.8689 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5655/0.5669, allocations: 151.6 MB / 1.017 GB, free: 2.688 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.02944/0.5964, allocations: 30.5 MB / 1.047 GB, free: 4.09 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01738/0.6138, allocations: 13.46 MB / 1.06 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002374/0.6162, allocations: 131.2 kB / 1.06 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.006865/0.6231, allocations: 2.981 MB / 1.063 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.005386/0.6285, allocations: 2.449 MB / 1.065 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003953/0.6325, allocations: 1.862 MB / 1.067 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.007653/0.6402, allocations: 7.631 MB / 1.075 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01273/0.6529, allocations: 9.941 MB / 1.084 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004539/0.6575, allocations: 3.454 MB / 1.088 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004495/0.662, allocations: 3.536 MB / 1.091 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001347/0.6633, allocations: 0.5976 MB / 1.092 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003103/0.6664, allocations: 1.494 MB / 1.093 GB, free: 4.352 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.00262/0.6691, allocations: 2.362 MB / 1.095 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002996/0.6721, allocations: 2.886 MB / 1.098 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.007357/0.6795, allocations: 9.472 MB / 1.108 GB, free: 5.586 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.6795, allocations: 3.984 kB / 1.108 GB, free: 5.582 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.313e-06/0.6795, allocations: 3.938 kB / 1.108 GB, free: 5.578 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.000136/0.6796, allocations: 0 / 1.108 GB, free: 5.578 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: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.007984/0.6876, allocations: 5.128 MB / 1.113 GB, free: 380 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.6877, allocations: 8.031 kB / 1.113 GB, free: 372 kB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007014/0.6884, allocations: 0.6164 MB / 1.113 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004934/0.6933, allocations: 1.002 MB / 1.114 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004055/0.6974, allocations: 2.896 MB / 1.117 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/0.6976, allocations: 316.8 kB / 1.117 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005454/0.6981, allocations: 427.8 kB / 1.118 GB, free: 11.02 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008661/0.7068, allocations: 6.78 MB / 1.124 GB, free: 3.949 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.1e-05/0.7069, allocations: 27.77 kB / 1.124 GB, free: 3.922 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003721/0.7073, allocations: 184 kB / 1.124 GB, free: 3.742 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007536/0.708, allocations: 368 kB / 1.125 GB, free: 3.379 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006873/0.7149, allocations: 5.118 MB / 1.13 GB, free: 14.24 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02762/0.7426, allocations: 30.74 MB / 1.16 GB, free: 12.74 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.7443, allocations: 1.387 MB / 1.161 GB, free: 11.34 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/0.7458, allocations: 1.335 MB / 1.163 GB, free: 10.01 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 8.762e-05/0.7459, allocations: 17.25 kB / 1.163 GB, free: 9.992 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.746, allocations: 47.88 kB / 1.163 GB, free: 9.938 MB / 0.92 GB Notification: Performance of pre-optimization done (n=130): time 3.066e-06/0.746, allocations: 11.88 kB / 1.163 GB, free: 9.926 MB / 0.92 GB Notification: Performance of matching and sorting (n=199): time 0.07653/0.8225, allocations: 23.07 MB / 1.185 GB, free: 2.719 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.8226, allocations: 73.41 kB / 1.185 GB, free: 2.637 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002632/0.8252, allocations: 2.058 MB / 1.187 GB, free: 0.5625 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001485/0.8254, allocations: 61.7 kB / 1.187 GB, free: 0.4961 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001176/0.8266, allocations: 2.006 MB / 1.189 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005318/0.8271, allocations: 0.6817 MB / 1.19 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006642/0.8278, allocations: 408.1 kB / 1.19 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 8.558e-05/0.8279, allocations: 305.1 kB / 1.191 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001861/0.8298, allocations: 1.441 MB / 1.192 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002218/0.832, allocations: 2.006 MB / 1.194 GB, free: 9.367 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004223/0.8362, allocations: 3.696 MB / 1.198 GB, free: 5.434 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.8362, allocations: 4 kB / 1.198 GB, free: 5.43 MB / 0.9512 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.009702/0.8459, allocations: 5.657 MB / 1.203 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.846, allocations: 12 kB / 1.203 GB, free: 15.69 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.167e-05/0.846, allocations: 20.78 kB / 1.203 GB, free: 15.67 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005965/0.852, allocations: 2.103 MB / 1.205 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/0.8532, allocations: 375.4 kB / 1.206 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03449/0.8877, allocations: 38.46 MB / 1.243 GB, free: 4.152 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/0.8896, allocations: 123.9 kB / 1.243 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002492/0.8899, allocations: 88 kB / 1.243 GB, free: 3.945 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (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.002163/0.8921, allocations: 1.509 MB / 1.245 GB, free: 2.426 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005282/0.8926, allocations: 292.6 kB / 1.245 GB, free: 2.137 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4398/1.332, allocations: 5.199 MB / 1.25 GB, free: 208.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.263e-05/1.332, allocations: 20.38 kB / 1.25 GB, free: 208.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.762e-05/1.333, allocations: 17.69 kB / 1.25 GB, free: 208.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.617e-05/1.333, allocations: 14.77 kB / 1.25 GB, free: 208.9 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01959/1.352, allocations: 9.67 MB / 1.26 GB, free: 206 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/1.352, allocations: 14.39 kB / 1.26 GB, free: 206 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008154/1.353, allocations: 213.4 kB / 1.26 GB, free: 206 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005727/1.359, allocations: 1.854 MB / 1.262 GB, free: 205.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/1.359, allocations: 42.66 kB / 1.262 GB, free: 205.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02851/1.387, allocations: 37.48 MB / 1.298 GB, free: 174.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.387, allocations: 3.969 kB / 1.298 GB, free: 174.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007773/1.395, allocations: 4.915 MB / 1.303 GB, free: 172.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/1.396, allocations: 0.6108 MB / 1.304 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005939/1.397, allocations: 48.27 kB / 1.304 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/1.399, allocations: 129.2 kB / 1.304 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005389/1.399, allocations: 189.5 kB / 1.304 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/1.399, allocations: 58.09 kB / 1.304 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00197/1.401, allocations: 1.376 MB / 1.305 GB, free: 171.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.51e-07/1.401, allocations: 0 / 1.305 GB, free: 171.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00303/1.404, allocations: 1.052 MB / 1.306 GB, free: 171.8 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,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.007381/1.412, allocations: 5.537 MB / 1.312 GB, free: 169 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.009103/1.421, allocations: 7.213 MB / 1.319 GB, free: 163.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/1.421, allocations: 3.938 kB / 1.319 GB, free: 163.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004917/1.426, allocations: 4.395 MB / 1.323 GB, free: 158.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003685/1.43, allocations: 0.9835 MB / 1.324 GB, free: 158 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04484/1.474, allocations: 35.98 MB / 1.359 GB, free: 119.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003169/1.478, allocations: 3.117 MB / 1.362 GB, free: 116.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001617/1.479, allocations: 0.5198 MB / 1.363 GB, free: 115.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001449/1.481, allocations: 1.667 MB / 1.364 GB, free: 114.3 MB / 0.9981 GB Notification: Performance of SimCode: time 6.91e-07/1.481, allocations: 0 / 1.364 GB, free: 114.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.347/4.828, allocations: 89.62 MB / 1.452 GB, free: 25.79 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/4.828, allocations: 240.8 kB / 1.452 GB, free: 25.54 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.309/8.137, allocations: 0 / 1.452 GB, free: 25.54 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches