Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.005574/0.005574, allocations: 102.3 kB / 15.73 MB, free: 6.039 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.001233/0.001233, allocations: 190.7 kB / 16.67 MB, free: 5.953 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.472/2.472, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 63.89 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8791/0.8807, allocations: 151.6 MB / 1.166 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01733/0.8981, allocations: 14.81 MB / 1.181 GB, free: 4.926 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01713/0.9153, allocations: 10.34 MB / 1.191 GB, free: 10.55 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001901/0.9172, allocations: 55.62 kB / 1.191 GB, free: 10.5 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.004744/0.922, allocations: 1.694 MB / 1.192 GB, free: 8.801 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.007425/0.9295, allocations: 1.848 MB / 1.194 GB, free: 6.949 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002407/0.9319, allocations: 0.754 MB / 1.195 GB, free: 6.195 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.004762/0.9367, allocations: 2.755 MB / 1.198 GB, free: 3.43 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002541/0.9392, allocations: 1.423 MB / 1.199 GB, free: 1.973 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002889/0.9421, allocations: 1.527 MB / 1.201 GB, free: 452 kB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002724/0.9449, allocations: 1.156 MB / 1.202 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0007975/0.9457, allocations: 160 kB / 1.202 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002486/0.9482, allocations: 0.7914 MB / 1.203 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0007314/0.9489, allocations: 0.6037 MB / 1.203 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.9502, allocations: 0.9561 MB / 1.204 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003529/0.9537, allocations: 2.768 MB / 1.207 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.9537, allocations: 0 / 1.207 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.016e-06/0.9538, allocations: 0 / 1.207 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.792e-05/0.9538, allocations: 4 kB / 1.207 GB, free: 9.984 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004039/0.9578, allocations: 2.166 MB / 1.209 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 6.342e-05/0.9579, allocations: 12.92 kB / 1.209 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002378/0.9582, allocations: 190.4 kB / 1.209 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01107/0.9692, allocations: 2.108 MB / 1.211 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00291/0.9722, allocations: 1.303 MB / 1.212 GB, free: 4.082 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.786e-05/0.9723, allocations: 90.69 kB / 1.213 GB, free: 3.992 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002921/0.9726, allocations: 119.8 kB / 1.213 GB, free: 3.875 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005591/0.9782, allocations: 2.674 MB / 1.215 GB, free: 1.051 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.993e-05/0.9782, allocations: 4 kB / 1.215 GB, free: 1.047 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001623/0.9784, allocations: 55.98 kB / 1.215 GB, free: 0.9922 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006003/0.979, allocations: 190.1 kB / 1.215 GB, free: 0.8047 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00716/0.9862, allocations: 2.799 MB / 1.218 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01526/1.001, allocations: 10.46 MB / 1.228 GB, free: 2.953 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006156/1.008, allocations: 2.344 MB / 1.231 GB, free: 0.582 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003016/1.011, allocations: 1.278 MB / 1.232 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 8.502e-05/1.011, allocations: 16.92 kB / 1.232 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/1.011, allocations: 47.56 kB / 1.232 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=89): time 3.206e-06/1.011, allocations: 0 / 1.232 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of matching and sorting (n=153): time 0.05981/1.071, allocations: 16.48 MB / 1.248 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/1.071, allocations: 72.66 kB / 1.248 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001727/1.073, allocations: 1.176 MB / 1.249 GB, free: 13.33 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0002004/1.073, allocations: 53.7 kB / 1.249 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005706/1.073, allocations: 0.7475 MB / 1.25 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005741/1.074, allocations: 0.5082 MB / 1.251 GB, free: 12 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006301/1.075, allocations: 287.4 kB / 1.251 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.177e-05/1.075, allocations: 313.1 kB / 1.251 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003442/1.078, allocations: 1.507 MB / 1.253 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00359/1.082, allocations: 1.784 MB / 1.254 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007095/1.089, allocations: 3.369 MB / 1.258 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/1.089, allocations: 0 / 1.258 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01371/1.103, allocations: 5.28 MB / 1.263 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.239e-05/1.103, allocations: 11.98 kB / 1.263 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/1.103, allocations: 4 kB / 1.263 GB, free: 15.21 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007358/1.11, allocations: 1.88 MB / 1.265 GB, free: 13.31 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001943/1.112, allocations: 411.3 kB / 1.265 GB, free: 12.91 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03045/1.143, allocations: 24.13 MB / 1.289 GB, free: 3.672 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00258/1.145, allocations: 303.5 kB / 1.289 GB, free: 3.375 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003066/1.145, allocations: 71.91 kB / 1.289 GB, free: 3.305 MB / 1.014 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001022/1.146, allocations: 469.7 kB / 1.289 GB, free: 2.84 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004854/1.147, allocations: 173.9 kB / 1.29 GB, free: 2.668 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01359/1.161, allocations: 5.328 MB / 1.295 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/1.161, allocations: 16 kB / 1.295 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.552e-05/1.161, allocations: 20 kB / 1.295 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/1.161, allocations: 7.969 kB / 1.295 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01786/1.179, allocations: 7.423 MB / 1.302 GB, free: 5.699 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.812e-05/1.179, allocations: 4 kB / 1.302 GB, free: 5.695 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/1.18, allocations: 355.7 kB / 1.302 GB, free: 5.348 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006625/1.187, allocations: 1.703 MB / 1.304 GB, free: 3.621 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002693/1.187, allocations: 47.91 kB / 1.304 GB, free: 3.574 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02989/1.217, allocations: 23.31 MB / 1.327 GB, free: 11.14 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/1.217, allocations: 7.938 kB / 1.327 GB, free: 11.13 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01295/1.23, allocations: 4.887 MB / 1.332 GB, free: 6.156 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/1.231, allocations: 494.8 kB / 1.332 GB, free: 5.652 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004723/1.232, allocations: 28 kB / 1.332 GB, free: 5.625 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002395/1.234, allocations: 319.5 kB / 1.333 GB, free: 5.312 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007314/1.235, allocations: 153 kB / 1.333 GB, free: 5.16 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002062/1.235, allocations: 55.97 kB / 1.333 GB, free: 5.105 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001477/1.237, allocations: 0.7904 MB / 1.334 GB, free: 4.316 MB / 1.061 GB Notification: Performance of sort global known variables: time 2e-07/1.237, allocations: 0 / 1.334 GB, free: 4.316 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002719/1.24, allocations: 0.6562 MB / 1.334 GB, free: 3.66 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01267/1.252, allocations: 5.472 MB / 1.339 GB, free: 14.09 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.01139/1.264, allocations: 5.147 MB / 1.345 GB, free: 8.84 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/1.264, allocations: 0 / 1.345 GB, free: 8.84 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.007518/1.271, allocations: 3.355 MB / 1.348 GB, free: 5.387 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004081/1.275, allocations: 0.5511 MB / 1.348 GB, free: 4.852 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05085/1.326, allocations: 21.86 MB / 1.37 GB, free: 14.5 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001989/1.328, allocations: 1.568 MB / 1.371 GB, free: 12.89 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.001678/1.33, allocations: 382.4 kB / 1.372 GB, free: 12.52 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/1.331, allocations: 0.6554 MB / 1.372 GB, free: 11.86 MB / 1.107 GB Notification: Performance of SimCode: time 8.62e-07/1.331, allocations: 0 / 1.372 GB, free: 11.86 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1226/1.454, allocations: 58.74 MB / 1.43 GB, free: 1.715 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.02/21.47, allocations: 19.55 kB / 1.43 GB, free: 1.699 MB / 1.154 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches