Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.007366/0.007366, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001708/0.001708, allocations: 196.1 kB / 16.67 MB, free: 5.977 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.301/1.301, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.543/2.543, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 55.91 kB / 1.054 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2768, allocations: 157.4 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006715/0.2835, allocations: 5.545 MB / 1.213 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003997/0.2876, allocations: 2.65 MB / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004329/0.288, allocations: 23.81 kB / 1.215 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00169/0.2897, allocations: 0.6729 MB / 1.216 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001009/0.2908, allocations: 417.7 kB / 1.216 GB, free: 0.832 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009743/0.2917, allocations: 408.3 kB / 1.217 GB, free: 444 kB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00102/0.2928, allocations: 0.9669 MB / 1.218 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005694/0.2933, allocations: 470.6 kB / 1.218 GB, free: 15 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000392/0.2937, allocations: 374.7 kB / 1.218 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004432/0.2942, allocations: 406.4 kB / 1.219 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.954e-05/0.2943, allocations: 52 kB / 1.219 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005953/0.2949, allocations: 363.3 kB / 1.219 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002279/0.2951, allocations: 239.3 kB / 1.219 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003078/0.2954, allocations: 354.2 kB / 1.22 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0008828/0.2963, allocations: 0.9734 MB / 1.221 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2964, allocations: 0 / 1.221 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2964, allocations: 0 / 1.221 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.304e-05/0.2964, allocations: 0 / 1.221 GB, free: 12.27 MB / 0.9825 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.001387/0.2978, allocations: 0.9776 MB / 1.222 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.2978, allocations: 12.62 kB / 1.222 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.2979, allocations: 98.69 kB / 1.222 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/0.2992, allocations: 199.8 kB / 1.222 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006867/0.2999, allocations: 0.5218 MB / 1.223 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.3, allocations: 41.36 kB / 1.223 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.3001, allocations: 48.56 kB / 1.223 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000996/0.3011, allocations: 0.8278 MB / 1.223 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.3011, allocations: 3.938 kB / 1.223 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.569e-05/0.3012, allocations: 27.98 kB / 1.223 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001743/0.3014, allocations: 64.94 kB / 1.224 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007635/0.3022, allocations: 0.5774 MB / 1.224 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003664/0.3058, allocations: 4.565 MB / 1.229 GB, free: 3.781 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004059/0.3063, allocations: 295.2 kB / 1.229 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002655/0.3065, allocations: 225.3 kB / 1.229 GB, free: 3.262 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.3066, allocations: 4.281 kB / 1.229 GB, free: 3.258 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.3066, allocations: 38.84 kB / 1.229 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=33): time 1.743e-06/0.3066, allocations: 0 / 1.229 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of matching and sorting (n=40): time 0.004911/0.3115, allocations: 2.639 MB / 1.232 GB, free: 456 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.3116, allocations: 63.39 kB / 1.232 GB, free: 380 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.312, allocations: 462 kB / 1.232 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.312, allocations: 33.7 kB / 1.232 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001847/0.3122, allocations: 343.6 kB / 1.233 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.926e-05/0.3123, allocations: 145.9 kB / 1.233 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.3125, allocations: 106.1 kB / 1.233 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.3126, allocations: 362.8 kB / 1.233 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000317/0.3129, allocations: 236.9 kB / 1.233 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004047/0.3133, allocations: 414.4 kB / 1.234 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007519/0.3141, allocations: 0.6779 MB / 1.234 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3141, allocations: 4 kB / 1.234 GB, free: 13.44 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001501/0.3156, allocations: 0.9099 MB / 1.235 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.3156, allocations: 8.125 kB / 1.235 GB, free: 12.51 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.3157, allocations: 8 kB / 1.235 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007191/0.3164, allocations: 226.3 kB / 1.236 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004783/0.3169, allocations: 115.8 kB / 1.236 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004436/0.3213, allocations: 5.348 MB / 1.241 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/0.3217, allocations: 31.97 kB / 1.241 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.665e-05/0.3218, allocations: 24 kB / 1.241 GB, free: 6.336 MB / 0.9981 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.0002666/0.322, allocations: 227.7 kB / 1.241 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.534e-05/0.3221, allocations: 63.34 kB / 1.241 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.3235, allocations: 0.7658 MB / 1.242 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3235, allocations: 4 kB / 1.242 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3235, allocations: 4 kB / 1.242 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3235, allocations: 0 / 1.242 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.3257, allocations: 1.505 MB / 1.243 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3257, allocations: 0 / 1.243 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.3261, allocations: 67.89 kB / 1.243 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006176/0.3267, allocations: 206.5 kB / 1.244 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.3267, allocations: 15.98 kB / 1.244 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5541/0.8809, allocations: 5.262 MB / 1.249 GB, free: 35.63 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.8809, allocations: 2.531 kB / 1.249 GB, free: 35.63 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001691/0.8826, allocations: 1.133 MB / 1.25 GB, free: 35.42 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.8828, allocations: 168.7 kB / 1.25 GB, free: 35.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.909e-05/0.8829, allocations: 11.19 kB / 1.25 GB, free: 35.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003222/0.8832, allocations: 25.3 kB / 1.25 GB, free: 35.33 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.518e-05/0.8833, allocations: 44.89 kB / 1.25 GB, free: 35.33 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.8834, allocations: 13.5 kB / 1.25 GB, free: 35.33 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003207/0.8837, allocations: 317.3 kB / 1.25 GB, free: 35.24 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8837, allocations: 0 / 1.25 GB, free: 35.24 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006439/0.8843, allocations: 168.1 kB / 1.251 GB, free: 35.24 MB / 0.9981 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.001697/0.886, allocations: 1.698 MB / 1.252 GB, free: 34.48 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001228/0.8873, allocations: 1.008 MB / 1.253 GB, free: 34.13 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.8873, allocations: 2.844 kB / 1.253 GB, free: 34.13 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007042/0.888, allocations: 0.6868 MB / 1.254 GB, free: 33.78 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007666/0.8888, allocations: 176.5 kB / 1.254 GB, free: 33.78 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006233/0.895, allocations: 5.627 MB / 1.26 GB, free: 31.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.8954, allocations: 0.9464 MB / 1.261 GB, free: 30.89 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003528/0.8958, allocations: 118.7 kB / 1.261 GB, free: 30.86 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002282/0.896, allocations: 214.2 kB / 1.261 GB, free: 30.86 MB / 0.9981 GB Notification: Performance of SimCode: time 7.82e-07/0.896, allocations: 0 / 1.261 GB, free: 30.86 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04959/0.9456, allocations: 14.47 MB / 1.275 GB, free: 29.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/11.11, allocations: 8.844 kB / 1.275 GB, free: 29.74 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches