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.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_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.00125/0.00125, 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.001239/0.001239, allocations: 193.2 kB / 16.25 MB, free: 6.633 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.239/1.239, allocations: 222.9 MB / 239.9 MB, free: 4.438 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.302/2.302, allocations: 437 MB / 0.7101 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001148, allocations: 71.89 kB / 0.8689 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4697/0.4708, allocations: 151.6 MB / 1.017 GB, free: 2.715 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.005682/0.4766, allocations: 5.566 MB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003039/0.4796, allocations: 2.627 MB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.4798, allocations: 19.88 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001416/0.4812, allocations: 0.6422 MB / 1.026 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005732/0.4818, allocations: 382.2 kB / 1.026 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006159/0.4824, allocations: 368.5 kB / 1.026 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000726/0.4832, allocations: 0.9629 MB / 1.027 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005599/0.4837, allocations: 0.5007 MB / 1.028 GB, free: 7.625 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.4841, allocations: 382.5 kB / 1.028 GB, free: 7.25 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000379/0.4844, allocations: 422.4 kB / 1.028 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.935e-05/0.4845, allocations: 48 kB / 1.029 GB, free: 6.789 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004045/0.4849, allocations: 367.2 kB / 1.029 GB, free: 6.43 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001822/0.4851, allocations: 247.3 kB / 1.029 GB, free: 6.188 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002501/0.4854, allocations: 342.3 kB / 1.029 GB, free: 5.852 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000744/0.4861, allocations: 1.004 MB / 1.03 GB, free: 4.844 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.4861, allocations: 0 / 1.03 GB, free: 4.844 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.122e-06/0.4861, allocations: 0 / 1.03 GB, free: 4.844 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.4862, allocations: 0 / 1.03 GB, free: 4.844 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.001212/0.4874, allocations: 0.9698 MB / 1.031 GB, free: 3.824 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.958e-05/0.4874, allocations: 12.03 kB / 1.031 GB, free: 3.812 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.298e-05/0.4875, allocations: 98.69 kB / 1.031 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.4887, allocations: 191.8 kB / 1.032 GB, free: 3.52 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005532/0.4893, allocations: 0.4945 MB / 1.032 GB, free: 2.984 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.4893, allocations: 33.38 kB / 1.032 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.4895, allocations: 64.48 kB / 1.032 GB, free: 2.887 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009419/0.4904, allocations: 0.8355 MB / 1.033 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.4904, allocations: 3.906 kB / 1.033 GB, free: 1.965 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.4905, allocations: 24 kB / 1.033 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001673/0.4907, allocations: 64.95 kB / 1.033 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007277/0.4914, allocations: 0.5735 MB / 1.034 GB, free: 1.305 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00344/0.4949, allocations: 4.585 MB / 1.038 GB, free: 12.37 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.4953, allocations: 293.4 kB / 1.038 GB, free: 12.08 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002596/0.4955, allocations: 225.3 kB / 1.039 GB, free: 11.86 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.4956, allocations: 8.281 kB / 1.039 GB, free: 11.85 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.4956, allocations: 42.78 kB / 1.039 GB, free: 11.8 MB / 0.795 GB Notification: Performance of pre-optimization done (n=33): time 1.352e-06/0.4956, allocations: 0 / 1.039 GB, free: 11.8 MB / 0.795 GB Notification: Performance of matching and sorting (n=40): time 0.004696/0.5003, allocations: 2.626 MB / 1.041 GB, free: 9.043 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.58e-05/0.5003, allocations: 55.41 kB / 1.041 GB, free: 8.977 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003726/0.5007, allocations: 466 kB / 1.042 GB, free: 8.512 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.5008, allocations: 37.7 kB / 1.042 GB, free: 8.469 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.5009, allocations: 343.6 kB / 1.042 GB, free: 8.125 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 8.809e-05/0.501, allocations: 141.9 kB / 1.042 GB, free: 7.984 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.5012, allocations: 102.2 kB / 1.042 GB, free: 7.879 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.5013, allocations: 366.7 kB / 1.043 GB, free: 7.512 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.5016, allocations: 241 kB / 1.043 GB, free: 7.277 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003824/0.502, allocations: 410.4 kB / 1.043 GB, free: 6.801 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000712/0.5027, allocations: 0.6779 MB / 1.044 GB, free: 6.051 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.5027, allocations: 0 / 1.044 GB, free: 6.051 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001418/0.5041, allocations: 0.9211 MB / 1.045 GB, free: 5.113 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.5042, allocations: 8 kB / 1.045 GB, free: 5.105 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.5042, allocations: 11.98 kB / 1.045 GB, free: 5.094 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006862/0.5049, allocations: 218.7 kB / 1.045 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004552/0.5053, allocations: 119.8 kB / 1.045 GB, free: 4.754 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004181/0.5095, allocations: 5.339 MB / 1.05 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003575/0.5099, allocations: 31.97 kB / 1.051 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.61e-05/0.5099, allocations: 20 kB / 1.051 GB, free: 14.93 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.0002126/0.5101, allocations: 227.3 kB / 1.051 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.926e-05/0.5102, allocations: 59.28 kB / 1.051 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/0.5116, allocations: 0.781 MB / 1.052 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.5116, allocations: 4.188 kB / 1.052 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.5116, allocations: 8 kB / 1.052 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.5116, allocations: 3.984 kB / 1.052 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.5136, allocations: 1.499 MB / 1.053 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.5136, allocations: 4 kB / 1.053 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003478/0.514, allocations: 75.81 kB / 1.053 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006114/0.5146, allocations: 202.6 kB / 1.053 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.854e-05/0.5147, allocations: 11.98 kB / 1.053 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004008/0.5187, allocations: 5.27 MB / 1.058 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5187, allocations: 4.031 kB / 1.058 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.5202, allocations: 1.139 MB / 1.06 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.5204, allocations: 172.4 kB / 1.06 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.606e-05/0.5204, allocations: 8 kB / 1.06 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.5207, allocations: 31.95 kB / 1.06 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.937e-05/0.5208, allocations: 27.97 kB / 1.06 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.676e-05/0.5209, allocations: 15.98 kB / 1.06 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002631/0.5211, allocations: 318.9 kB / 1.06 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5211, allocations: 0 / 1.06 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005136/0.5216, allocations: 164 kB / 1.06 GB, free: 4.336 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.001722/0.5234, allocations: 1.707 MB / 1.062 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001373/0.5248, allocations: 1.055 MB / 1.063 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.5248, allocations: 0 / 1.063 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000815/0.5256, allocations: 0.6759 MB / 1.064 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007664/0.5264, allocations: 180.3 kB / 1.064 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006476/0.5329, allocations: 5.942 MB / 1.07 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.5333, allocations: 0.9494 MB / 1.071 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003159/0.5336, allocations: 125 kB / 1.071 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002265/0.5338, allocations: 207.4 kB / 1.071 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.5338, allocations: 0 / 1.071 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.619/3.153, allocations: 14 MB / 1.085 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/3.153, allocations: 251.7 kB / 1.085 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.706/5.859, allocations: 0 / 1.085 GB, free: 11.12 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