Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002275/0.002275, allocations: 214.4 kB / 22.25 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.426/1.426, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.208/3.208, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 65.55 kB / 1.186 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3719/0.374, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.008462/0.3825, allocations: 5.274 MB / 1.369 GB, free: 8.789 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.005167/0.3877, allocations: 2.619 MB / 1.371 GB, free: 6.16 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005894/0.3882, allocations: 27.75 kB / 1.371 GB, free: 6.133 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.00225/0.3905, allocations: 0.6768 MB / 1.372 GB, free: 5.453 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.3917, allocations: 421.8 kB / 1.372 GB, free: 5.039 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.3929, allocations: 405.6 kB / 1.373 GB, free: 4.645 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001527/0.3944, allocations: 0.94 MB / 1.374 GB, free: 3.699 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008107/0.3953, allocations: 382.4 kB / 1.374 GB, free: 3.316 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008477/0.3961, allocations: 390.6 kB / 1.374 GB, free: 2.934 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009147/0.397, allocations: 406.3 kB / 1.375 GB, free: 2.535 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.3972, allocations: 52 kB / 1.375 GB, free: 2.484 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008041/0.398, allocations: 327.2 kB / 1.375 GB, free: 2.164 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0004318/0.3984, allocations: 259.2 kB / 1.375 GB, free: 1.91 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0008196/0.3992, allocations: 286.7 kB / 1.376 GB, free: 1.629 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.002212/0.4014, allocations: 0.9806 MB / 1.376 GB, free: 0.6445 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.4014, allocations: 3.938 kB / 1.376 GB, free: 0.6406 MB / 1.061 GB Notification: Performance of FrontEnd: time 3.537e-06/0.4014, allocations: 0 / 1.376 GB, free: 0.6406 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.323e-05/0.4015, allocations: 0 / 1.376 GB, free: 0.6406 MB / 1.061 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.002613/0.4041, allocations: 0.9191 MB / 1.377 GB, free: 15.69 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/0.4042, allocations: 12.03 kB / 1.377 GB, free: 15.68 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002081/0.4044, allocations: 98.62 kB / 1.377 GB, free: 15.57 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001628/0.406, allocations: 200.3 kB / 1.378 GB, free: 15.38 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.4071, allocations: 455.6 kB / 1.378 GB, free: 14.91 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.247e-05/0.4072, allocations: 37.36 kB / 1.378 GB, free: 14.88 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002031/0.4074, allocations: 48.56 kB / 1.378 GB, free: 14.83 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.409, allocations: 0.9861 MB / 1.379 GB, free: 13.73 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.542e-05/0.409, allocations: 4 kB / 1.379 GB, free: 13.72 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.412e-05/0.4091, allocations: 27.98 kB / 1.379 GB, free: 13.7 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002151/0.4093, allocations: 68.88 kB / 1.379 GB, free: 13.63 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.4104, allocations: 0.5697 MB / 1.38 GB, free: 13.05 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005315/0.4157, allocations: 3.565 MB / 1.383 GB, free: 9.348 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005294/0.4162, allocations: 275.2 kB / 1.384 GB, free: 9.07 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003434/0.4166, allocations: 221.2 kB / 1.384 GB, free: 8.852 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.4166, allocations: 8.281 kB / 1.384 GB, free: 8.844 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.4166, allocations: 34.84 kB / 1.384 GB, free: 8.801 MB / 1.076 GB Notification: Performance of pre-optimization done (n=33): time 2.525e-06/0.4166, allocations: 0 / 1.384 GB, free: 8.801 MB / 1.076 GB Notification: Performance of matching and sorting (n=40): time 0.006087/0.4227, allocations: 2.338 MB / 1.386 GB, free: 6.41 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.4228, allocations: 55.41 kB / 1.386 GB, free: 6.344 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006222/0.4234, allocations: 465.8 kB / 1.387 GB, free: 5.879 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 4.401e-05/0.4234, allocations: 33.7 kB / 1.387 GB, free: 5.84 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.4237, allocations: 352.5 kB / 1.387 GB, free: 5.492 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.4239, allocations: 150.7 kB / 1.387 GB, free: 5.344 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/0.4241, allocations: 106.2 kB / 1.387 GB, free: 5.234 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001892/0.4242, allocations: 366.8 kB / 1.388 GB, free: 4.867 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003955/0.4246, allocations: 237.2 kB / 1.388 GB, free: 4.637 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005297/0.4252, allocations: 411.3 kB / 1.388 GB, free: 4.156 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009683/0.4261, allocations: 0.674 MB / 1.389 GB, free: 3.41 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.4261, allocations: 4 kB / 1.389 GB, free: 3.406 MB / 1.076 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001866/0.428, allocations: 0.9057 MB / 1.39 GB, free: 2.484 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.428, allocations: 8 kB / 1.39 GB, free: 2.477 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.428, allocations: 8.656 kB / 1.39 GB, free: 2.469 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008287/0.4289, allocations: 222.4 kB / 1.39 GB, free: 2.242 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005382/0.4294, allocations: 119.8 kB / 1.39 GB, free: 2.125 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005957/0.4354, allocations: 5.006 MB / 1.395 GB, free: 12.77 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005045/0.4359, allocations: 27.97 kB / 1.395 GB, free: 12.74 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.422e-05/0.4359, allocations: 24 kB / 1.395 GB, free: 12.72 MB / 1.092 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.0003306/0.4363, allocations: 227.4 kB / 1.395 GB, free: 12.49 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.4364, allocations: 63.56 kB / 1.395 GB, free: 12.43 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/0.4379, allocations: 0.7694 MB / 1.396 GB, free: 11.64 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.4379, allocations: 4.141 kB / 1.396 GB, free: 11.63 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.4379, allocations: 4 kB / 1.396 GB, free: 11.63 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.438, allocations: 7.969 kB / 1.396 GB, free: 11.62 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.4406, allocations: 1.392 MB / 1.397 GB, free: 10.15 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.4406, allocations: 4 kB / 1.397 GB, free: 10.15 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003677/0.441, allocations: 63.89 kB / 1.397 GB, free: 10.09 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006938/0.4417, allocations: 206.6 kB / 1.398 GB, free: 9.875 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.833e-05/0.4417, allocations: 12 kB / 1.398 GB, free: 9.863 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005316/0.447, allocations: 4.936 MB / 1.402 GB, free: 4.582 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.4471, allocations: 0 / 1.402 GB, free: 4.582 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.449, allocations: 1.135 MB / 1.404 GB, free: 3.398 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003275/0.4493, allocations: 95.56 kB / 1.404 GB, free: 3.305 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.4494, allocations: 12.17 kB / 1.404 GB, free: 3.293 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003539/0.4498, allocations: 27.97 kB / 1.404 GB, free: 3.266 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.4499, allocations: 39.94 kB / 1.404 GB, free: 3.227 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.952e-05/0.4499, allocations: 12.06 kB / 1.404 GB, free: 3.215 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.00045/0.4504, allocations: 314.8 kB / 1.404 GB, free: 2.91 MB / 1.092 GB Notification: Performance of sort global known variables: time 1e-07/0.4504, allocations: 3.938 kB / 1.404 GB, free: 2.906 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0007771/0.4511, allocations: 168 kB / 1.404 GB, free: 2.742 MB / 1.092 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.002404/0.4535, allocations: 1.692 MB / 1.406 GB, free: 0.9922 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.001882/0.4554, allocations: 0.9618 MB / 1.407 GB, free: 15.99 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.4554, allocations: 4.125 kB / 1.407 GB, free: 15.98 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.4564, allocations: 0.6718 MB / 1.407 GB, free: 15.27 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009197/0.4574, allocations: 178.3 kB / 1.408 GB, free: 15.1 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008591/0.4659, allocations: 5.624 MB / 1.413 GB, free: 9.203 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.4664, allocations: 346.2 kB / 1.413 GB, free: 8.84 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0003726/0.4668, allocations: 113 kB / 1.414 GB, free: 8.727 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003043/0.4671, allocations: 211.4 kB / 1.414 GB, free: 8.52 MB / 1.107 GB Notification: Performance of SimCode: time 7.71e-07/0.4671, allocations: 0 / 1.414 GB, free: 8.52 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05558/0.5226, allocations: 15.61 MB / 1.429 GB, free: 9.262 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.18, allocations: 17.08 kB / 1.429 GB, free: 9.25 MB / 1.123 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.928004506975412]