Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_9_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_9_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.009572/0.009572, allocations: 100.9 kB / 15.73 MB, free: 6.043 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.002066/0.002066, allocations: 201.8 kB / 16.68 MB, free: 5.98 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.195 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.415/2.415, allocations: 390.2 MB / 0.6648 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 67.2 kB / 0.9504 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3196, allocations: 140.4 MB / 1.087 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03702/0.3567, allocations: 32.6 MB / 1.119 GB, free: 1.328 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01886/0.3755, allocations: 10.27 MB / 1.129 GB, free: 7.031 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003434/0.379, allocations: 147.2 kB / 1.129 GB, free: 6.887 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.009201/0.3883, allocations: 3.709 MB / 1.133 GB, free: 3.172 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004973/0.3933, allocations: 1.858 MB / 1.135 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.005243/0.3986, allocations: 2.134 MB / 1.137 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00832/0.4069, allocations: 7.325 MB / 1.144 GB, free: 7.824 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01265/0.4196, allocations: 9.411 MB / 1.153 GB, free: 14.3 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005874/0.4255, allocations: 3.237 MB / 1.157 GB, free: 11.05 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005767/0.4313, allocations: 3.481 MB / 1.16 GB, free: 7.562 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.002002/0.4333, allocations: 0.6484 MB / 1.161 GB, free: 6.914 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004322/0.4377, allocations: 1.767 MB / 1.162 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.003811/0.4415, allocations: 2.55 MB / 1.165 GB, free: 2.59 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.005948/0.4475, allocations: 2.894 MB / 1.168 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01432/0.4618, allocations: 10.11 MB / 1.177 GB, free: 5.551 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.4619, allocations: 0 / 1.177 GB, free: 5.551 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.907e-06/0.4619, allocations: 0 / 1.177 GB, free: 5.551 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0003737/0.4623, allocations: 3.938 kB / 1.177 GB, free: 5.547 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: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01543/0.4777, allocations: 5.002 MB / 1.182 GB, free: 484 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.4778, allocations: 12.03 kB / 1.182 GB, free: 472 kB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002397/0.4802, allocations: 0.682 MB / 1.183 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006184/0.4864, allocations: 0.9512 MB / 1.184 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007054/0.4934, allocations: 3.038 MB / 1.187 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003667/0.4938, allocations: 353.7 kB / 1.187 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001528/0.4954, allocations: 464.2 kB / 1.188 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01695/0.5123, allocations: 7.663 MB / 1.195 GB, free: 2.902 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002336/0.5126, allocations: 23.72 kB / 1.195 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001155/0.5138, allocations: 200 kB / 1.195 GB, free: 2.684 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003822/0.5142, allocations: 316.9 kB / 1.196 GB, free: 2.371 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01208/0.5263, allocations: 5.71 MB / 1.201 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04039/0.5667, allocations: 34.83 MB / 1.235 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002915/0.5696, allocations: 2.158 MB / 1.237 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001694/0.5714, allocations: 1.264 MB / 1.239 GB, free: 3.062 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.811e-05/0.5715, allocations: 13.31 kB / 1.239 GB, free: 3.051 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.5715, allocations: 47.88 kB / 1.239 GB, free: 2.996 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=133): time 3.005e-06/0.5715, allocations: 0 / 1.239 GB, free: 2.996 MB / 0.9981 GB Notification: Performance of matching and sorting (n=136): time 0.01384/0.5854, allocations: 7.092 MB / 1.246 GB, free: 11.63 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.5854, allocations: 64.72 kB / 1.246 GB, free: 11.56 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002041/0.5875, allocations: 1.488 MB / 1.247 GB, free: 10.02 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001354/0.5876, allocations: 53.7 kB / 1.247 GB, free: 9.965 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001239/0.5889, allocations: 2.004 MB / 1.249 GB, free: 7.934 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004555/0.5894, allocations: 493 kB / 1.25 GB, free: 7.445 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005202/0.5899, allocations: 347.1 kB / 1.25 GB, free: 7.102 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 9.625e-05/0.59, allocations: 305.1 kB / 1.25 GB, free: 6.801 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.5913, allocations: 0.9096 MB / 1.251 GB, free: 5.891 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.593, allocations: 1.593 MB / 1.253 GB, free: 3.98 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003248/0.5963, allocations: 2.741 MB / 1.255 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-05/0.5963, allocations: 4 kB / 1.255 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.5883/1.185, allocations: 3.529 MB / 1.259 GB, free: 154.1 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/1.185, allocations: 15.55 kB / 1.259 GB, free: 154.1 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.645e-05/1.185, allocations: 22.25 kB / 1.259 GB, free: 154.1 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002856/1.188, allocations: 0.8971 MB / 1.26 GB, free: 154 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/1.189, allocations: 352 kB / 1.26 GB, free: 154 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02041/1.209, allocations: 23.09 MB / 1.283 GB, free: 134.6 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/1.211, allocations: 106.8 kB / 1.283 GB, free: 134.6 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001866/1.212, allocations: 87.27 kB / 1.283 GB, free: 134.6 MB / 1.014 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.002998/1.215, allocations: 1.609 MB / 1.284 GB, free: 133.9 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004698/1.215, allocations: 204.9 kB / 1.285 GB, free: 133.9 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005528/1.221, allocations: 2.99 MB / 1.287 GB, free: 132.6 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/1.221, allocations: 13.47 kB / 1.287 GB, free: 132.6 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.331e-05/1.221, allocations: 10.19 kB / 1.288 GB, free: 132.6 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/1.221, allocations: 14.45 kB / 1.288 GB, free: 132.6 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01352/1.234, allocations: 7.33 MB / 1.295 GB, free: 129.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/1.234, allocations: 12.59 kB / 1.295 GB, free: 129.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008543/1.235, allocations: 176.7 kB / 1.295 GB, free: 129.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002483/1.238, allocations: 0.823 MB / 1.296 GB, free: 129 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/1.238, allocations: 30.41 kB / 1.296 GB, free: 129 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01808/1.256, allocations: 21.95 MB / 1.317 GB, free: 110 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/1.256, allocations: 8.781 kB / 1.317 GB, free: 110 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005369/1.261, allocations: 3.023 MB / 1.32 GB, free: 108.6 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/1.263, allocations: 465.8 kB / 1.321 GB, free: 108.3 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/1.263, allocations: 31.83 kB / 1.321 GB, free: 108.3 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000799/1.264, allocations: 69.89 kB / 1.321 GB, free: 108.2 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004495/1.264, allocations: 122.8 kB / 1.321 GB, free: 108.2 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.85e-05/1.264, allocations: 35.91 kB / 1.321 GB, free: 108.2 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001643/1.266, allocations: 0.9778 MB / 1.322 GB, free: 107.8 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.01e-07/1.266, allocations: 0 / 1.322 GB, free: 107.8 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.004393/1.27, allocations: 0.7876 MB / 1.322 GB, free: 107.7 MB / 1.014 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.005104/1.275, allocations: 3.615 MB / 1.326 GB, free: 105.7 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.005312/1.281, allocations: 4.035 MB / 1.33 GB, free: 103.4 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/1.281, allocations: 0 / 1.33 GB, free: 103.4 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003274/1.284, allocations: 2.728 MB / 1.333 GB, free: 101.5 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003755/1.288, allocations: 0.7359 MB / 1.333 GB, free: 101.2 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02963/1.317, allocations: 22.33 MB / 1.355 GB, free: 83.63 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003123/1.321, allocations: 3.112 MB / 1.358 GB, free: 80.48 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001378/1.322, allocations: 450 kB / 1.359 GB, free: 80.04 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001376/1.323, allocations: 1.546 MB / 1.36 GB, free: 78.5 MB / 1.014 GB Notification: Performance of SimCode: time 2.204e-06/1.323, allocations: 0 / 1.36 GB, free: 78.5 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1131/1.437, allocations: 62 MB / 1.421 GB, free: 17.07 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/14.41, allocations: 0.5 kB / 1.421 GB, free: 17.07 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches