Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",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.001309/0.001309, 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.0014/0.001401, 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.293/1.293, allocations: 222.9 MB / 239.8 MB, free: 4.645 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.394/2.394, allocations: 437 MB / 0.7099 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 59.91 kB / 0.8687 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5468/0.5483, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006444/0.5548, allocations: 5.563 MB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003821/0.5586, allocations: 2.662 MB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004059/0.559, allocations: 19.88 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001561/0.5606, allocations: 0.6395 MB / 1.025 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0008734/0.5615, allocations: 390.1 kB / 1.026 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008397/0.5624, allocations: 368.3 kB / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001177/0.5635, allocations: 1.251 MB / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006712/0.5642, allocations: 460.2 kB / 1.028 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005006/0.5647, allocations: 326.6 kB / 1.028 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005325/0.5653, allocations: 410.4 kB / 1.028 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.5654, allocations: 32 kB / 1.029 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006835/0.5661, allocations: 451 kB / 1.029 GB, free: 6.25 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002387/0.5663, allocations: 231.3 kB / 1.029 GB, free: 6.023 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003629/0.5667, allocations: 330.3 kB / 1.029 GB, free: 5.699 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.5677, allocations: 0.9771 MB / 1.03 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.5677, allocations: 0 / 1.03 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.32e-07/0.5677, allocations: 0 / 1.03 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.256e-05/0.5678, allocations: 0 / 1.03 GB, free: 4.719 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001563/0.5693, allocations: 0.9776 MB / 1.031 GB, free: 3.688 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.5694, allocations: 15.97 kB / 1.031 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001116/0.5695, allocations: 98.69 kB / 1.031 GB, free: 3.566 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.5708, allocations: 195.8 kB / 1.032 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006589/0.5715, allocations: 490.5 kB / 1.032 GB, free: 2.855 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.5715, allocations: 41.36 kB / 1.032 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.5717, allocations: 52.56 kB / 1.032 GB, free: 2.766 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.5728, allocations: 0.8316 MB / 1.033 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.5728, allocations: 11.84 kB / 1.033 GB, free: 1.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.775e-05/0.5729, allocations: 27.98 kB / 1.033 GB, free: 1.812 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001839/0.5731, allocations: 60.95 kB / 1.033 GB, free: 1.75 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008452/0.5739, allocations: 0.5736 MB / 1.034 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003893/0.5778, allocations: 4.585 MB / 1.038 GB, free: 12.24 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004223/0.5782, allocations: 301.3 kB / 1.038 GB, free: 11.94 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002791/0.5785, allocations: 225.3 kB / 1.039 GB, free: 11.72 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.5786, allocations: 8.266 kB / 1.039 GB, free: 11.71 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.5786, allocations: 42.84 kB / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of pre-optimization done (n=33): time 1.633e-06/0.5786, allocations: 0 / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of matching and sorting (n=40): time 0.005108/0.5837, allocations: 2.618 MB / 1.041 GB, free: 8.914 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.5837, allocations: 59.34 kB / 1.041 GB, free: 8.844 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004158/0.5842, allocations: 466 kB / 1.042 GB, free: 8.379 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.5842, allocations: 29.7 kB / 1.042 GB, free: 8.344 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.5844, allocations: 347.6 kB / 1.042 GB, free: 7.996 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.5845, allocations: 149.9 kB / 1.042 GB, free: 7.848 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.5847, allocations: 102.2 kB / 1.042 GB, free: 7.742 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.5848, allocations: 362.8 kB / 1.043 GB, free: 7.379 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.5851, allocations: 237 kB / 1.043 GB, free: 7.148 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004164/0.5855, allocations: 412.4 kB / 1.043 GB, free: 6.672 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007791/0.5863, allocations: 0.6779 MB / 1.044 GB, free: 5.922 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5863, allocations: 0 / 1.044 GB, free: 5.922 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001584/0.5879, allocations: 0.9207 MB / 1.045 GB, free: 4.984 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.588, allocations: 8 kB / 1.045 GB, free: 4.977 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.588, allocations: 4 kB / 1.045 GB, free: 4.973 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007804/0.5888, allocations: 227 kB / 1.045 GB, free: 4.742 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004748/0.5892, allocations: 115.8 kB / 1.045 GB, free: 4.629 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004549/0.5938, allocations: 4.943 MB / 1.05 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004363/0.5943, allocations: 31.97 kB / 1.05 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.5943, allocations: 24 kB / 1.05 GB, free: 15.23 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,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.000303/0.5946, allocations: 225.1 kB / 1.05 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.5947, allocations: 59.41 kB / 1.05 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/0.5962, allocations: 0.7772 MB / 1.051 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.5962, allocations: 8 kB / 1.051 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.5962, allocations: 0 / 1.051 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.5962, allocations: 7.984 kB / 1.051 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.5985, allocations: 1.494 MB / 1.053 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.5985, allocations: 0 / 1.053 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/0.5989, allocations: 75.88 kB / 1.053 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006403/0.5995, allocations: 214.8 kB / 1.053 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.5995, allocations: 8 kB / 1.053 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00408/0.6036, allocations: 4.868 MB / 1.058 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.6037, allocations: 7.969 kB / 1.058 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.6052, allocations: 1.131 MB / 1.059 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002051/0.6055, allocations: 168.4 kB / 1.059 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.289e-05/0.6055, allocations: 11.98 kB / 1.059 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/0.6059, allocations: 27.97 kB / 1.059 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.394e-05/0.6059, allocations: 35.89 kB / 1.059 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.606, allocations: 12 kB / 1.059 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002879/0.6063, allocations: 314.9 kB / 1.059 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6063, allocations: 0 / 1.059 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005723/0.6069, allocations: 168 kB / 1.06 GB, free: 5.062 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001852/0.6087, allocations: 1.699 MB / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001401/0.6101, allocations: 1.004 MB / 1.062 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.6101, allocations: 0 / 1.062 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008508/0.611, allocations: 0.6799 MB / 1.063 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007861/0.6118, allocations: 172.7 kB / 1.063 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007106/0.6189, allocations: 5.946 MB / 1.069 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004447/0.6194, allocations: 0.9455 MB / 1.07 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003335/0.6197, allocations: 117 kB / 1.07 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000243/0.62, allocations: 215.4 kB / 1.07 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.62, allocations: 0 / 1.07 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5923/1.212, allocations: 13.59 MB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003195/1.213, allocations: 237.9 kB / 1.084 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/3.437, allocations: 3.375 kB / 1.084 GB, free: 12.3 MB / 0.8419 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches