Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.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.002137/0.002137, allocations: 103.6 kB / 18.95 MB, free: 2.652 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.002752/0.002752, allocations: 222.2 kB / 22.25 MB, free: 5.262 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.432/1.432, 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 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.113/3.113, allocations: 0.49 GB / 0.7951 GB, free: 35.47 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N",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.002026/0.002026, allocations: 65.06 kB / 1.154 GB, free: 25.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2978, allocations: 176.1 MB / 1.326 GB, free: 1.453 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02532/0.3231, allocations: 19.53 MB / 1.345 GB, free: 13.86 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.01152/0.3347, allocations: 6.484 MB / 1.351 GB, free: 7.359 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001583/0.3362, allocations: 111.2 kB / 1.351 GB, free: 7.25 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.006/0.3422, allocations: 2.241 MB / 1.354 GB, free: 5.004 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.003025/0.3453, allocations: 1.24 MB / 1.355 GB, free: 3.758 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.003078/0.3483, allocations: 1.298 MB / 1.356 GB, free: 2.461 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.005665/0.354, allocations: 4.843 MB / 1.361 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004751/0.3588, allocations: 3.182 MB / 1.364 GB, free: 10.35 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003328/0.3621, allocations: 2.162 MB / 1.366 GB, free: 8.18 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004122/0.3662, allocations: 2.469 MB / 1.368 GB, free: 5.703 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0007694/0.367, allocations: 428 kB / 1.369 GB, free: 5.285 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002017/0.369, allocations: 0.9557 MB / 1.37 GB, free: 4.328 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.001926/0.3709, allocations: 1.711 MB / 1.371 GB, free: 2.613 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.002264/0.3732, allocations: 1.553 MB / 1.373 GB, free: 1.055 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.007309/0.3805, allocations: 6.561 MB / 1.379 GB, free: 10.47 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3805, allocations: 4 kB / 1.379 GB, free: 10.47 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.963e-06/0.3805, allocations: 0 / 1.379 GB, free: 10.47 MB / 1.076 GB Notification: Performance of Transformations before backend: time 0.0001154/0.3806, allocations: 0 / 1.379 GB, free: 10.47 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.006892/0.3875, allocations: 3.462 MB / 1.383 GB, free: 6.957 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3876, allocations: 8.031 kB / 1.383 GB, free: 6.949 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006586/0.3882, allocations: 454.6 kB / 1.383 GB, free: 6.492 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003437/0.3916, allocations: 0.6584 MB / 1.384 GB, free: 5.832 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004573/0.3962, allocations: 1.997 MB / 1.386 GB, free: 3.781 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001894/0.3964, allocations: 226.3 kB / 1.386 GB, free: 3.559 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005043/0.3969, allocations: 304 kB / 1.386 GB, free: 3.262 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008172/0.4051, allocations: 5.234 MB / 1.391 GB, free: 13.74 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.006e-05/0.4052, allocations: 15.92 kB / 1.391 GB, free: 13.73 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003207/0.4055, allocations: 128 kB / 1.392 GB, free: 13.6 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004532/0.4059, allocations: 233.7 kB / 1.392 GB, free: 13.37 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006054/0.412, allocations: 3.742 MB / 1.395 GB, free: 9.617 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01981/0.4318, allocations: 13.57 MB / 1.409 GB, free: 11.69 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001865/0.4337, allocations: 1.227 MB / 1.41 GB, free: 10.45 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001465/0.4351, allocations: 0.9797 MB / 1.411 GB, free: 9.473 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 5.937e-05/0.4352, allocations: 13 kB / 1.411 GB, free: 9.461 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.584e-05/0.4352, allocations: 43.56 kB / 1.411 GB, free: 9.41 MB / 1.107 GB Notification: Performance of pre-optimization done (n=107): time 2.855e-06/0.4352, allocations: 0 / 1.411 GB, free: 9.41 MB / 1.107 GB Notification: Performance of matching and sorting (n=138): time 0.02495/0.4602, allocations: 8.436 MB / 1.419 GB, free: 0.9688 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.516e-05/0.4602, allocations: 72.7 kB / 1.419 GB, free: 0.8867 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001569/0.4618, allocations: 1.157 MB / 1.42 GB, free: 15.72 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.4619, allocations: 53.7 kB / 1.42 GB, free: 15.66 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009769/0.4629, allocations: 1.335 MB / 1.422 GB, free: 14.32 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004548/0.4634, allocations: 0.4918 MB / 1.422 GB, free: 13.82 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005095/0.4639, allocations: 295.4 kB / 1.422 GB, free: 13.52 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.464, allocations: 309.1 kB / 1.423 GB, free: 13.22 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.4654, allocations: 0.9096 MB / 1.424 GB, free: 12.31 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001722/0.4671, allocations: 1.322 MB / 1.425 GB, free: 10.82 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003356/0.4705, allocations: 2.43 MB / 1.427 GB, free: 8.219 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/0.4705, allocations: 8 kB / 1.427 GB, free: 8.211 MB / 1.123 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006497/0.477, allocations: 3.429 MB / 1.431 GB, free: 4.762 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.477, allocations: 8 kB / 1.431 GB, free: 4.754 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.477, allocations: 12 kB / 1.431 GB, free: 4.742 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003572/0.4806, allocations: 1.186 MB / 1.432 GB, free: 3.551 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009734/0.4816, allocations: 255.5 kB / 1.432 GB, free: 3.301 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01851/0.5001, allocations: 13.35 MB / 1.445 GB, free: 5.613 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.5014, allocations: 87.91 kB / 1.445 GB, free: 5.527 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.5015, allocations: 64 kB / 1.445 GB, free: 5.465 MB / 1.139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * 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 {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001788/0.5033, allocations: 1.118 MB / 1.446 GB, free: 4.336 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003055/0.5036, allocations: 174.8 kB / 1.446 GB, free: 4.164 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005994/0.5096, allocations: 3.134 MB / 1.45 GB, free: 1.012 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.5096, allocations: 12 kB / 1.45 GB, free: 1 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.329e-05/0.5097, allocations: 15.94 kB / 1.45 GB, free: 0.9844 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.5097, allocations: 11.95 kB / 1.45 GB, free: 0.9727 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/0.5206, allocations: 5.898 MB / 1.455 GB, free: 10.95 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.5206, allocations: 4 kB / 1.455 GB, free: 10.94 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006205/0.5212, allocations: 151.7 kB / 1.455 GB, free: 10.79 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003065/0.5243, allocations: 1.064 MB / 1.457 GB, free: 9.723 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.5244, allocations: 28 kB / 1.457 GB, free: 9.695 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01766/0.542, allocations: 13.05 MB / 1.469 GB, free: 12.3 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/0.542, allocations: 11.94 kB / 1.469 GB, free: 12.29 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005608/0.5476, allocations: 3.12 MB / 1.472 GB, free: 9.086 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.5487, allocations: 366.7 kB / 1.473 GB, free: 8.727 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002093/0.5489, allocations: 24 kB / 1.473 GB, free: 8.703 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008004/0.5497, allocations: 83.89 kB / 1.473 GB, free: 8.621 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003271/0.55, allocations: 128.6 kB / 1.473 GB, free: 8.496 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.5501, allocations: 40 kB / 1.473 GB, free: 8.457 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.001088/0.5512, allocations: 0.7671 MB / 1.474 GB, free: 7.688 MB / 1.17 GB Notification: Performance of sort global known variables: time 7e-08/0.5512, allocations: 0 / 1.474 GB, free: 7.688 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.00193/0.5531, allocations: 0.6562 MB / 1.474 GB, free: 7.031 MB / 1.17 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 simulation (70): * Single equations (assignments): 67 * 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 {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005846/0.559, allocations: 3.713 MB / 1.478 GB, free: 3.215 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.005024/0.564, allocations: 3.012 MB / 1.481 GB, free: 176 kB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/0.564, allocations: 3.938 kB / 1.481 GB, free: 172 kB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.003113/0.5671, allocations: 1.881 MB / 1.483 GB, free: 14.24 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.5692, allocations: 0.5 MB / 1.483 GB, free: 13.76 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03041/0.5996, allocations: 19.18 MB / 1.502 GB, free: 9.988 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002342/0.602, allocations: 1.769 MB / 1.504 GB, free: 8.188 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 0.001013/0.603, allocations: 350.1 kB / 1.504 GB, free: 7.84 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001245/0.6042, allocations: 1.011 MB / 1.505 GB, free: 6.828 MB / 1.201 GB Notification: Performance of SimCode: time 1.393e-06/0.6042, allocations: 0 / 1.505 GB, free: 6.828 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1107/0.715, allocations: 56.57 MB / 1.56 GB, free: 15.1 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/13.15, allocations: 3.938 kB / 1.56 GB, free: 15.1 MB / 1.264 GB " [Timeout remaining time 287] (rm -f Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.fmu > Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.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: 20.087058047007304]