Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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.002032/0.002032, allocations: 105.6 kB / 16.45 MB, free: 6.453 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.002495/0.002495, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.453/1.453, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.141/3.141, allocations: 0.49 GB / 0.7916 GB, free: 33.35 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_RLC_N,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_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.002036/0.002036, allocations: 66.41 kB / 1.149 GB, free: 26.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3481, allocations: 176.1 MB / 1.321 GB, free: 3.344 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.05253/0.4006, allocations: 41.84 MB / 1.362 GB, free: 9.367 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.02914/0.4297, allocations: 15.32 MB / 1.377 GB, free: 10.01 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004352/0.4341, allocations: 246.1 kB / 1.377 GB, free: 9.766 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.01243/0.4465, allocations: 4.542 MB / 1.381 GB, free: 5.211 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.008839/0.4554, allocations: 2.931 MB / 1.384 GB, free: 2.266 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.01015/0.4655, allocations: 3.17 MB / 1.387 GB, free: 15.1 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.01792/0.4834, allocations: 11.42 MB / 1.398 GB, free: 3.641 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01957/0.503, allocations: 9.236 MB / 1.407 GB, free: 10.27 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01153/0.5145, allocations: 4.962 MB / 1.412 GB, free: 5.289 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01363/0.5282, allocations: 5.756 MB / 1.418 GB, free: 15.52 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.004832/0.533, allocations: 0.9492 MB / 1.419 GB, free: 14.57 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008671/0.5417, allocations: 2.072 MB / 1.421 GB, free: 12.49 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.008018/0.5497, allocations: 3.78 MB / 1.425 GB, free: 8.703 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.009914/0.5596, allocations: 4.299 MB / 1.429 GB, free: 4.387 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.02213/0.5817, allocations: 14.32 MB / 1.443 GB, free: 6.023 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.5817, allocations: 0 / 1.443 GB, free: 6.023 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.623e-06/0.5817, allocations: 0 / 1.443 GB, free: 6.023 MB / 1.139 GB Notification: Performance of Transformations before backend: time 0.0004992/0.5822, allocations: 0 / 1.443 GB, free: 6.023 MB / 1.139 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02466/0.6069, allocations: 7.799 MB / 1.45 GB, free: 14.13 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.607, allocations: 11.98 kB / 1.45 GB, free: 14.12 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003427/0.6104, allocations: 0.8955 MB / 1.451 GB, free: 13.21 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01177/0.6221, allocations: 1.561 MB / 1.453 GB, free: 11.65 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01043/0.6326, allocations: 4.469 MB / 1.457 GB, free: 7.105 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005231/0.6331, allocations: 456.4 kB / 1.458 GB, free: 6.652 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002526/0.6356, allocations: 0.5979 MB / 1.458 GB, free: 6.055 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02614/0.6618, allocations: 10.69 MB / 1.469 GB, free: 10.99 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003244/0.6621, allocations: 35.7 kB / 1.469 GB, free: 10.96 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002051/0.6641, allocations: 263.9 kB / 1.469 GB, free: 10.7 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003285/0.6674, allocations: 0.7729 MB / 1.47 GB, free: 9.922 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01936/0.6868, allocations: 8.561 MB / 1.478 GB, free: 1.34 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07201/0.7588, allocations: 46.61 MB / 1.523 GB, free: 14.98 MB / 1.232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006699/0.7655, allocations: 3.977 MB / 1.527 GB, free: 11 MB / 1.232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006306/0.7718, allocations: 3.377 MB / 1.531 GB, free: 7.613 MB / 1.232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000513/0.7723, allocations: 38.72 kB / 1.531 GB, free: 7.574 MB / 1.232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.87e-05/0.7724, allocations: 81.27 kB / 1.531 GB, free: 7.484 MB / 1.232 GB Notification: Performance of pre-optimization done (n=353): time 6.482e-06/0.7724, allocations: 0 / 1.531 GB, free: 7.484 MB / 1.232 GB Notification: Performance of matching and sorting (n=578): time 1.202/1.975, allocations: 122.6 MB / 1.651 GB, free: 243 MB / 1.295 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/1.975, allocations: 115.9 kB / 1.651 GB, free: 242.9 MB / 1.295 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003108/1.978, allocations: 2.68 MB / 1.653 GB, free: 240.3 MB / 1.295 GB Notification: Performance of collectPreVariables (initialization): time 0.0009152/1.979, allocations: 125.7 kB / 1.653 GB, free: 240.1 MB / 1.295 GB Notification: Performance of collectInitialEqns (initialization): time 0.001123/1.98, allocations: 2.745 MB / 1.656 GB, free: 237.7 MB / 1.295 GB Notification: Performance of collectInitialBindings (initialization): time 0.001729/1.981, allocations: 2.053 MB / 1.658 GB, free: 235.8 MB / 1.295 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001609/1.983, allocations: 0.929 MB / 1.659 GB, free: 234.9 MB / 1.295 GB Notification: Performance of setup shared object (initialization): time 3.687e-05/1.983, allocations: 305.1 kB / 1.659 GB, free: 234.6 MB / 1.295 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004565/1.988, allocations: 4.079 MB / 1.663 GB, free: 230.5 MB / 1.295 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005101/1.993, allocations: 5.015 MB / 1.668 GB, free: 225.1 MB / 1.295 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01101/2.004, allocations: 9.851 MB / 1.678 GB, free: 214.9 MB / 1.295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.938e-05/2.004, allocations: 7.938 kB / 1.678 GB, free: 214.9 MB / 1.295 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03367/2.037, allocations: 16.74 MB / 1.694 GB, free: 198 MB / 1.295 GB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/2.038, allocations: 16.19 kB / 1.694 GB, free: 198 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.934e-05/2.038, allocations: 28 kB / 1.694 GB, free: 198 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02892/2.066, allocations: 9.084 MB / 1.703 GB, free: 188.9 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002303/2.069, allocations: 0.5226 MB / 1.704 GB, free: 188.4 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08744/2.156, allocations: 77.03 MB / 1.779 GB, free: 109.8 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005593/2.162, allocations: 283.8 kB / 1.779 GB, free: 109.5 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001245/2.163, allocations: 187.9 kB / 1.779 GB, free: 109.3 MB / 1.295 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004896/2.168, allocations: 2.431 MB / 1.782 GB, free: 106.9 MB / 1.295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/2.169, allocations: 493 kB / 1.782 GB, free: 106.4 MB / 1.295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03791/2.207, allocations: 16.54 MB / 1.798 GB, free: 89.74 MB / 1.295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.054e-05/2.207, allocations: 52 kB / 1.798 GB, free: 89.69 MB / 1.295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002037/2.208, allocations: 72 kB / 1.798 GB, free: 89.62 MB / 1.295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001177/2.208, allocations: 27.89 kB / 1.798 GB, free: 89.59 MB / 1.295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05208/2.26, allocations: 25.38 MB / 1.823 GB, free: 63.97 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.055e-05/2.26, allocations: 8 kB / 1.823 GB, free: 63.96 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001861/2.262, allocations: 319.5 kB / 1.823 GB, free: 63.65 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02765/2.289, allocations: 8.264 MB / 1.832 GB, free: 55.35 MB / 1.295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001185/2.29, allocations: 111.9 kB / 1.832 GB, free: 55.24 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09528/2.386, allocations: 73.91 MB / 1.904 GB, free: 11.8 MB / 1.326 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/2.386, allocations: 11.94 kB / 1.904 GB, free: 11.79 MB / 1.326 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04964/2.435, allocations: 21.31 MB / 1.925 GB, free: 6.121 MB / 1.342 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004375/2.44, allocations: 1.384 MB / 1.926 GB, free: 4.715 MB / 1.342 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001716/2.442, allocations: 108 kB / 1.926 GB, free: 4.609 MB / 1.342 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004979/2.446, allocations: 287.6 kB / 1.926 GB, free: 4.328 MB / 1.342 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002712/2.449, allocations: 0.5258 MB / 1.927 GB, free: 3.797 MB / 1.342 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008363/2.45, allocations: 140 kB / 1.927 GB, free: 3.66 MB / 1.342 GB Notification: Performance of sorting global known variables: time 0.003303/2.453, allocations: 1.776 MB / 1.929 GB, free: 1.895 MB / 1.342 GB Notification: Performance of sort global known variables: time 3.21e-07/2.453, allocations: 3.938 kB / 1.929 GB, free: 1.891 MB / 1.342 GB Notification: Performance of remove unused functions: time 0.01029/2.464, allocations: 2.465 MB / 1.931 GB, free: 15.42 MB / 1.357 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.05059/2.514, allocations: 22.02 MB / 1.953 GB, free: 9.039 MB / 1.373 GB Notification: Performance of simCode: created initialization part: time 0.03066/2.545, allocations: 13.74 MB / 1.966 GB, free: 11.1 MB / 1.389 GB Notification: Performance of simCode: created event and clocks part: time 1.745e-05/2.545, allocations: 4 kB / 1.966 GB, free: 11.1 MB / 1.389 GB Notification: Performance of simCode: created simulation system equations: time 0.02036/2.565, allocations: 9.026 MB / 1.975 GB, free: 1.922 MB / 1.389 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008526/2.574, allocations: 1.388 MB / 1.976 GB, free: 0.5898 MB / 1.389 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1583/2.732, allocations: 69.83 MB / 2.044 GB, free: 9.078 MB / 1.467 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009128/2.741, allocations: 4.897 MB / 2.049 GB, free: 4.137 MB / 1.467 GB Notification: Performance of simCode: alias equations: time 0.002747/2.744, allocations: 0.7409 MB / 2.05 GB, free: 3.395 MB / 1.467 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003958/2.748, allocations: 2.616 MB / 2.052 GB, free: 0.7773 MB / 1.467 GB Notification: Performance of SimCode: time 1.503e-06/2.748, allocations: 0 / 2.052 GB, free: 0.7773 MB / 1.467 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.054/3.802, allocations: 197.9 MB / 2.246 GB, free: 0.5304 GB / 1.623 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.28/25.08, allocations: 4.969 kB / 2.246 GB, free: 0.5304 GB / 1.623 GB " [Timeout remaining time 275] (rm -f Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.fmu > Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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: 32.76913481298834]