Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_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.008446/0.008446, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001878/0.001878, allocations: 191.2 kB / 16.67 MB, free: 5.93 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.371/1.371, 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.471/2.471, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 63.91 kB / 1.018 GB, free: 9.91 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.004/1.006, allocations: 151.6 MB / 1.166 GB, free: 3.762 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01695/1.023, allocations: 14.06 MB / 1.18 GB, free: 5.648 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01436/1.037, allocations: 9.38 MB / 1.189 GB, free: 12.23 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001382/1.039, allocations: 59.62 kB / 1.189 GB, free: 12.18 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.004487/1.043, allocations: 1.677 MB / 1.191 GB, free: 10.5 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.005035/1.048, allocations: 1.575 MB / 1.192 GB, free: 8.922 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002191/1.051, allocations: 0.7665 MB / 1.193 GB, free: 8.156 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.004578/1.055, allocations: 2.512 MB / 1.195 GB, free: 5.633 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002599/1.058, allocations: 1.422 MB / 1.197 GB, free: 4.176 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002467/1.06, allocations: 1.071 MB / 1.198 GB, free: 3.102 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002562/1.063, allocations: 1.14 MB / 1.199 GB, free: 1.957 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001049/1.064, allocations: 164 kB / 1.199 GB, free: 1.797 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002951/1.067, allocations: 0.7916 MB / 1.2 GB, free: 1.004 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001303/1.068, allocations: 0.6154 MB / 1.201 GB, free: 396 kB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002485/1.071, allocations: 0.9407 MB / 1.201 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.004636/1.075, allocations: 2.757 MB / 1.204 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/1.075, allocations: 0 / 1.204 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.854e-06/1.075, allocations: 4 kB / 1.204 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.203e-05/1.076, allocations: 0 / 1.204 GB, free: 12.67 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.004962/1.08, allocations: 2.131 MB / 1.206 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/1.081, allocations: 8.922 kB / 1.206 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003737/1.081, allocations: 194.4 kB / 1.206 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01128/1.092, allocations: 2.089 MB / 1.208 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003288/1.096, allocations: 1.29 MB / 1.21 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/1.096, allocations: 82.73 kB / 1.21 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004865/1.096, allocations: 131.8 kB / 1.21 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006212/1.102, allocations: 2.679 MB / 1.213 GB, free: 3.797 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.229e-05/1.102, allocations: 11.94 kB / 1.213 GB, free: 3.785 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002109/1.103, allocations: 47.98 kB / 1.213 GB, free: 3.738 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005905/1.103, allocations: 182.1 kB / 1.213 GB, free: 3.559 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007526/1.111, allocations: 2.799 MB / 1.216 GB, free: 0.75 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01624/1.127, allocations: 10.47 MB / 1.226 GB, free: 5.695 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006589/1.134, allocations: 2.522 MB / 1.228 GB, free: 3.109 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003307/1.137, allocations: 1.284 MB / 1.229 GB, free: 1.824 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/1.137, allocations: 9 kB / 1.229 GB, free: 1.816 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.628e-05/1.137, allocations: 43.56 kB / 1.23 GB, free: 1.762 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=89): time 3.377e-06/1.137, allocations: 0 / 1.23 GB, free: 1.762 MB / 0.9512 GB Notification: Performance of matching and sorting (n=131): time 0.0469/1.184, allocations: 13.36 MB / 1.243 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/1.184, allocations: 68.72 kB / 1.243 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/1.186, allocations: 1.121 MB / 1.244 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0002057/1.186, allocations: 45.7 kB / 1.244 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005205/1.187, allocations: 0.7156 MB / 1.244 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005016/1.187, allocations: 453.4 kB / 1.245 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000611/1.188, allocations: 267.4 kB / 1.245 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001445/1.188, allocations: 361.8 kB / 1.245 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00323/1.191, allocations: 1.342 MB / 1.247 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003338/1.195, allocations: 1.6 MB / 1.248 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006594/1.201, allocations: 2.991 MB / 1.251 GB, free: 11 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/1.201, allocations: 8 kB / 1.251 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01144/1.213, allocations: 4.438 MB / 1.256 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/1.213, allocations: 8 kB / 1.256 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/1.213, allocations: 8 kB / 1.256 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00563/1.218, allocations: 1.436 MB / 1.257 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002045/1.22, allocations: 443.2 kB / 1.257 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02929/1.25, allocations: 26.67 MB / 1.284 GB, free: 8.062 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002589/1.252, allocations: 303.5 kB / 1.284 GB, free: 7.766 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003104/1.253, allocations: 63.97 kB / 1.284 GB, free: 7.703 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00104/1.254, allocations: 438.6 kB / 1.284 GB, free: 7.266 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004698/1.254, allocations: 158.1 kB / 1.284 GB, free: 7.109 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01192/1.266, allocations: 4.453 MB / 1.289 GB, free: 2.602 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.94e-05/1.266, allocations: 12 kB / 1.289 GB, free: 2.59 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.467e-05/1.266, allocations: 12 kB / 1.289 GB, free: 2.578 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.482e-05/1.266, allocations: 7.969 kB / 1.289 GB, free: 2.57 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01654/1.283, allocations: 6.775 MB / 1.295 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/1.283, allocations: 4 kB / 1.295 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001822/1.285, allocations: 383.7 kB / 1.296 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005276/1.29, allocations: 1.311 MB / 1.297 GB, free: 9.891 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002112/1.29, allocations: 43.95 kB / 1.297 GB, free: 9.848 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02684/1.317, allocations: 25.49 MB / 1.322 GB, free: 14.53 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/1.317, allocations: 4 kB / 1.322 GB, free: 14.53 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01117/1.328, allocations: 4.206 MB / 1.326 GB, free: 10.23 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/1.329, allocations: 459 kB / 1.327 GB, free: 9.758 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004205/1.33, allocations: 24 kB / 1.327 GB, free: 9.734 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002284/1.332, allocations: 303.5 kB / 1.327 GB, free: 9.438 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005069/1.333, allocations: 128.7 kB / 1.327 GB, free: 9.312 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001759/1.333, allocations: 51.95 kB / 1.327 GB, free: 9.262 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001328/1.334, allocations: 0.7526 MB / 1.328 GB, free: 8.508 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.9e-07/1.334, allocations: 3.938 kB / 1.328 GB, free: 8.504 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002353/1.337, allocations: 0.5664 MB / 1.328 GB, free: 7.938 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01148/1.348, allocations: 4.789 MB / 1.333 GB, free: 3.043 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.01154/1.36, allocations: 5.142 MB / 1.338 GB, free: 13.72 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/1.36, allocations: 0 / 1.338 GB, free: 13.72 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.007345/1.367, allocations: 3.487 MB / 1.341 GB, free: 10.07 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003114/1.37, allocations: 0.5474 MB / 1.342 GB, free: 9.535 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04595/1.416, allocations: 19.36 MB / 1.361 GB, free: 5.734 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001686/1.418, allocations: 1.481 MB / 1.362 GB, free: 4.219 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001798/1.42, allocations: 425.6 kB / 1.363 GB, free: 3.797 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/1.421, allocations: 0.6242 MB / 1.363 GB, free: 3.176 MB / 1.092 GB Notification: Performance of SimCode: time 6.42e-07/1.421, allocations: 0 / 1.363 GB, free: 3.176 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1251/1.546, allocations: 51.67 MB / 1.414 GB, free: 64 kB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.31/19.86, allocations: 5.5 kB / 1.414 GB, free: 60 kB / 1.139 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches