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.001897/0.001897, allocations: 106.6 kB / 18.94 MB, free: 2.957 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.002319/0.002319, allocations: 217.6 kB / 22.25 MB, free: 5.137 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.499/1.499, allocations: 230.6 MB / 256 MB, free: 8.039 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.35/3.35, allocations: 0.505 GB / 0.8101 GB, free: 22.06 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.002211/0.002211, allocations: 62.89 kB / 1.177 GB, free: 17.13 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3575, allocations: 180.2 MB / 1.353 GB, free: 8.492 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.008179/0.3657, allocations: 5.689 MB / 1.358 GB, free: 2.781 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.004837/0.3705, allocations: 2.767 MB / 1.361 GB, free: 4 kB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005234/0.3711, allocations: 27.8 kB / 1.361 GB, free: 15.97 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.002028/0.3731, allocations: 0.7041 MB / 1.362 GB, free: 15.27 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.00108/0.3742, allocations: 421.7 kB / 1.362 GB, free: 14.86 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.3752, allocations: 397.5 kB / 1.363 GB, free: 14.47 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001323/0.3765, allocations: 0.9516 MB / 1.364 GB, free: 13.52 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006795/0.3772, allocations: 386.5 kB / 1.364 GB, free: 13.13 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007003/0.3779, allocations: 382.5 kB / 1.364 GB, free: 12.75 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007313/0.3786, allocations: 434.4 kB / 1.365 GB, free: 12.33 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.3788, allocations: 48 kB / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007405/0.3795, allocations: 367.2 kB / 1.365 GB, free: 11.92 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0003093/0.3798, allocations: 259.2 kB / 1.365 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0004749/0.3803, allocations: 346.2 kB / 1.366 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001347/0.3816, allocations: 0.9767 MB / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3816, allocations: 0 / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3816, allocations: 0 / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of Transformations before backend: time 2.713e-05/0.3817, allocations: 0 / 1.367 GB, free: 10.35 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.001894/0.3836, allocations: 0.9209 MB / 1.368 GB, free: 9.395 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.3836, allocations: 11.97 kB / 1.368 GB, free: 9.383 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001302/0.3837, allocations: 98.7 kB / 1.368 GB, free: 9.277 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001438/0.3852, allocations: 200.3 kB / 1.368 GB, free: 9.082 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008959/0.3861, allocations: 455.6 kB / 1.368 GB, free: 8.613 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.3861, allocations: 37.36 kB / 1.368 GB, free: 8.574 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.3862, allocations: 56.5 kB / 1.368 GB, free: 8.52 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.3875, allocations: 0.8355 MB / 1.369 GB, free: 7.598 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/0.3875, allocations: 4 kB / 1.369 GB, free: 7.594 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.244e-05/0.3876, allocations: 24 kB / 1.369 GB, free: 7.57 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001889/0.3878, allocations: 68.94 kB / 1.369 GB, free: 7.504 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009618/0.3887, allocations: 0.5696 MB / 1.37 GB, free: 6.934 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004836/0.3936, allocations: 4.501 MB / 1.374 GB, free: 2.098 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004661/0.394, allocations: 283.2 kB / 1.374 GB, free: 1.812 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003107/0.3943, allocations: 209.3 kB / 1.375 GB, free: 1.605 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.3944, allocations: 4.281 kB / 1.375 GB, free: 1.602 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.3944, allocations: 38.78 kB / 1.375 GB, free: 1.555 MB / 1.061 GB Notification: Performance of pre-optimization done (n=33): time 2.254e-06/0.3944, allocations: 0 / 1.375 GB, free: 1.555 MB / 1.061 GB Notification: Performance of matching and sorting (n=40): time 0.005609/0.4, allocations: 2.326 MB / 1.377 GB, free: 15.17 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.4001, allocations: 67.39 kB / 1.377 GB, free: 15.09 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005453/0.4006, allocations: 454 kB / 1.377 GB, free: 14.64 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 4.132e-05/0.4007, allocations: 29.7 kB / 1.378 GB, free: 14.61 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.4009, allocations: 356.4 kB / 1.378 GB, free: 14.26 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.4011, allocations: 150.7 kB / 1.378 GB, free: 14.11 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/0.4012, allocations: 102.3 kB / 1.378 GB, free: 14 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001718/0.4014, allocations: 358.8 kB / 1.378 GB, free: 13.64 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003941/0.4018, allocations: 237.2 kB / 1.379 GB, free: 13.41 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005012/0.4023, allocations: 411.3 kB / 1.379 GB, free: 12.93 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009198/0.4032, allocations: 0.6778 MB / 1.38 GB, free: 12.18 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4032, allocations: 4 kB / 1.38 GB, free: 12.18 MB / 1.076 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00176/0.405, allocations: 0.9099 MB / 1.381 GB, free: 11.25 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.405, allocations: 12 kB / 1.381 GB, free: 11.24 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/0.405, allocations: 12 kB / 1.381 GB, free: 11.23 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008481/0.4059, allocations: 226.4 kB / 1.381 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005442/0.4064, allocations: 115.8 kB / 1.381 GB, free: 10.88 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005601/0.412, allocations: 5.037 MB / 1.386 GB, free: 5.496 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004836/0.4125, allocations: 23.98 kB / 1.386 GB, free: 5.473 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.898e-05/0.4126, allocations: 27.98 kB / 1.386 GB, free: 5.445 MB / 1.076 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.0003628/0.4129, allocations: 221.7 kB / 1.386 GB, free: 5.219 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.4131, allocations: 63.61 kB / 1.386 GB, free: 5.156 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00158/0.4146, allocations: 0.7618 MB / 1.387 GB, free: 4.375 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.4146, allocations: 15.88 kB / 1.387 GB, free: 4.359 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.4147, allocations: 4 kB / 1.387 GB, free: 4.355 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.4147, allocations: 3.984 kB / 1.387 GB, free: 4.352 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002624/0.4173, allocations: 1.451 MB / 1.388 GB, free: 2.82 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4173, allocations: 0 / 1.388 GB, free: 2.82 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003843/0.4177, allocations: 76.09 kB / 1.388 GB, free: 2.746 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006825/0.4184, allocations: 206.5 kB / 1.389 GB, free: 2.535 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.244e-05/0.4184, allocations: 8 kB / 1.389 GB, free: 2.527 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005556/0.4239, allocations: 4.968 MB / 1.394 GB, free: 13.22 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.4239, allocations: 8.094 kB / 1.394 GB, free: 13.21 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.4259, allocations: 1.131 MB / 1.395 GB, free: 12.03 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000308/0.4262, allocations: 103.5 kB / 1.395 GB, free: 11.93 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.68e-05/0.4263, allocations: 8 kB / 1.395 GB, free: 11.92 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003395/0.4266, allocations: 32.03 kB / 1.395 GB, free: 11.89 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.981e-05/0.4267, allocations: 35.92 kB / 1.395 GB, free: 11.86 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.973e-05/0.4267, allocations: 12 kB / 1.395 GB, free: 11.84 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0004015/0.4272, allocations: 306.9 kB / 1.395 GB, free: 11.55 MB / 1.092 GB Notification: Performance of sort global known variables: time 8e-08/0.4272, allocations: 0 / 1.395 GB, free: 11.55 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0007752/0.4279, allocations: 172 kB / 1.395 GB, free: 11.38 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.002224/0.4301, allocations: 1.696 MB / 1.397 GB, free: 9.625 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.001735/0.4319, allocations: 0.962 MB / 1.398 GB, free: 8.625 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4319, allocations: 0 / 1.398 GB, free: 8.625 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0009827/0.4329, allocations: 0.6681 MB / 1.399 GB, free: 7.918 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008915/0.4338, allocations: 183.6 kB / 1.399 GB, free: 7.742 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008493/0.4423, allocations: 5.62 MB / 1.404 GB, free: 1.836 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006781/0.4429, allocations: 0.9454 MB / 1.405 GB, free: 0.8633 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0003589/0.4433, allocations: 109 kB / 1.405 GB, free: 0.7539 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/0.4436, allocations: 215.3 kB / 1.405 GB, free: 0.543 MB / 1.092 GB Notification: Performance of SimCode: time 6.31e-07/0.4436, allocations: 3.938 kB / 1.405 GB, free: 0.5391 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07689/0.5205, allocations: 14.67 MB / 1.42 GB, free: 2.145 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.9, allocations: 12.02 kB / 1.42 GB, free: 2.137 MB / 1.107 GB " [Timeout remaining time 287] (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: 19.851763607002795]