Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.0007418/0.0007418, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007394/0.0007394, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8188/0.8188, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.679/1.679, allocations: 389 MB / 0.633 GB, free: 12.72 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.492e-06/1.492e-06, allocations: 0 / 0.9997 GB, free: 13.55 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.513e-05/1.662e-05, allocations: 10.28 kB / 0.9997 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.009615/0.009631, allocations: 13.09 MB / 1.012 GB, free: 408 kB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.008751/0.01838, allocations: 8.994 MB / 1.021 GB, free: 7.379 MB / 0.9792 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007121/0.01909, allocations: 87.25 kB / 1.021 GB, free: 7.293 MB / 0.9792 GB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.02098, allocations: 1.675 MB / 1.023 GB, free: 5.613 MB / 0.9792 GB Notification: Performance of NFTyping.typeBindings: time 0.002257/0.02324, allocations: 1.631 MB / 1.025 GB, free: 3.98 MB / 0.9792 GB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.02424, allocations: 0.763 MB / 1.025 GB, free: 3.219 MB / 0.9792 GB Notification: Performance of NFFlatten.flatten: time 0.001871/0.02611, allocations: 2.605 MB / 1.028 GB, free: 0.6016 MB / 0.9792 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.0272, allocations: 1.176 MB / 1.029 GB, free: 15.39 MB / 0.9948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001242/0.02844, allocations: 1.582 MB / 1.031 GB, free: 13.8 MB / 0.9948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007616/0.0292, allocations: 0.9583 MB / 1.031 GB, free: 12.84 MB / 0.9948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001333/0.02934, allocations: 163.9 kB / 1.032 GB, free: 12.68 MB / 0.9948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007251/0.03006, allocations: 0.7249 MB / 1.032 GB, free: 11.95 MB / 0.9948 GB Notification: Performance of NFScalarize.scalarize: time 0.0003417/0.0304, allocations: 0.6581 MB / 1.033 GB, free: 11.29 MB / 0.9948 GB Notification: Performance of NFVerifyModel.verify: time 0.0004148/0.03082, allocations: 0.6351 MB / 1.034 GB, free: 10.66 MB / 0.9948 GB Notification: Performance of NFConvertDAE.convert: time 0.001727/0.03254, allocations: 2.78 MB / 1.036 GB, free: 7.867 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.03255, allocations: 0 / 1.036 GB, free: 7.867 MB / 0.9948 GB Notification: Performance of FrontEnd: time 1.883e-06/0.03255, allocations: 0 / 1.036 GB, free: 7.867 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 1.382e-05/0.03256, allocations: 0 / 1.036 GB, free: 7.867 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.002036/0.0346, allocations: 2.089 MB / 1.038 GB, free: 5.738 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.03464, allocations: 16.67 kB / 1.038 GB, free: 5.723 MB / 0.9948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001541/0.03479, allocations: 190.4 kB / 1.039 GB, free: 5.527 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00532/0.04011, allocations: 2.102 MB / 1.041 GB, free: 3.422 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.04146, allocations: 1.176 MB / 1.042 GB, free: 2.191 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.147e-05/0.0415, allocations: 90.73 kB / 1.042 GB, free: 2.102 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001525/0.04166, allocations: 120.3 kB / 1.042 GB, free: 1.984 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3821/0.4238, allocations: 2.886 MB / 1.045 GB, free: 81.12 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.412e-05/0.4238, allocations: 6.406 kB / 1.045 GB, free: 81.12 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.4239, allocations: 57.92 kB / 1.045 GB, free: 81.12 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003103/0.4242, allocations: 179.8 kB / 1.045 GB, free: 81.12 MB / 0.9948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003586/0.4278, allocations: 2.796 MB / 1.048 GB, free: 80.47 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006614/0.4344, allocations: 8.333 MB / 1.056 GB, free: 75.79 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003071/0.4375, allocations: 2.212 MB / 1.058 GB, free: 75.31 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/0.4389, allocations: 1.208 MB / 1.059 GB, free: 75 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.797e-05/0.439, allocations: 14.44 kB / 1.059 GB, free: 74.99 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.638e-05/0.439, allocations: 40.53 kB / 1.059 GB, free: 74.95 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=89): time 2.093e-06/0.439, allocations: 1.438 kB / 1.059 GB, free: 74.95 MB / 0.9948 GB Notification: Performance of matching and sorting (n=131): time 0.02062/0.4596, allocations: 12.66 MB / 1.072 GB, free: 72.23 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.4597, allocations: 66.97 kB / 1.072 GB, free: 72.17 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009628/0.4606, allocations: 1.132 MB / 1.073 GB, free: 71.72 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 8.413e-05/0.4607, allocations: 48.17 kB / 1.073 GB, free: 71.68 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002826/0.461, allocations: 0.7252 MB / 1.074 GB, free: 71.16 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000238/0.4612, allocations: 471 kB / 1.074 GB, free: 70.85 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003104/0.4615, allocations: 263.2 kB / 1.074 GB, free: 70.73 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 5.786e-05/0.4616, allocations: 365.7 kB / 1.075 GB, free: 70.4 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/0.4635, allocations: 1.337 MB / 1.076 GB, free: 70.03 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001956/0.4655, allocations: 1.604 MB / 1.077 GB, free: 69.36 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003797/0.4693, allocations: 2.992 MB / 1.08 GB, free: 68.18 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.4693, allocations: 6.594 kB / 1.08 GB, free: 68.17 MB / 0.9948 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006185/0.4755, allocations: 4.401 MB / 1.085 GB, free: 66.71 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.4755, allocations: 8.406 kB / 1.085 GB, free: 66.71 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.4755, allocations: 7.656 kB / 1.085 GB, free: 66.71 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002714/0.4782, allocations: 1.433 MB / 1.086 GB, free: 66.31 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.4792, allocations: 430.7 kB / 1.087 GB, free: 66.3 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01329/0.4925, allocations: 25.08 MB / 1.111 GB, free: 45.97 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/0.4939, allocations: 311.2 kB / 1.111 GB, free: 45.94 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.494, allocations: 63.73 kB / 1.111 GB, free: 45.93 MB / 0.9948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006279/0.4946, allocations: 435.4 kB / 1.112 GB, free: 45.66 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.4948, allocations: 172.2 kB / 1.112 GB, free: 45.57 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006374/0.5012, allocations: 4.401 MB / 1.116 GB, free: 44.11 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.5012, allocations: 13.2 kB / 1.116 GB, free: 44.11 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.5012, allocations: 17 kB / 1.116 GB, free: 44.11 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.5012, allocations: 6.562 kB / 1.116 GB, free: 44.11 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008392/0.5096, allocations: 6.293 MB / 1.122 GB, free: 41.85 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.5096, allocations: 6.688 kB / 1.122 GB, free: 41.85 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008966/0.5105, allocations: 380.6 kB / 1.123 GB, free: 41.84 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002463/0.513, allocations: 1.304 MB / 1.124 GB, free: 41.47 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.021e-05/0.513, allocations: 38.47 kB / 1.124 GB, free: 41.46 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01232/0.5254, allocations: 23.97 MB / 1.148 GB, free: 21.73 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.5254, allocations: 4.219 kB / 1.148 GB, free: 21.73 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005557/0.5309, allocations: 4.155 MB / 1.152 GB, free: 19.94 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005183/0.5314, allocations: 394.2 kB / 1.152 GB, free: 19.68 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.5316, allocations: 24.47 kB / 1.152 GB, free: 19.66 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009533/0.5325, allocations: 306.7 kB / 1.152 GB, free: 19.52 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003227/0.5328, allocations: 135.7 kB / 1.152 GB, free: 19.43 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.435e-05/0.5329, allocations: 50.89 kB / 1.152 GB, free: 19.41 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.0006712/0.5336, allocations: 0.7538 MB / 1.153 GB, free: 18.99 MB / 0.9948 GB Notification: Performance of sort global known variables: time 6e-08/0.5336, allocations: 3.938 kB / 1.153 GB, free: 18.98 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.001427/0.535, allocations: 0.5663 MB / 1.154 GB, free: 18.93 MB / 0.9948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005452/0.5405, allocations: 4.746 MB / 1.158 GB, free: 15.96 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.005728/0.5462, allocations: 4.967 MB / 1.163 GB, free: 12.69 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.5462, allocations: 1.344 kB / 1.163 GB, free: 12.69 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.002997/0.5492, allocations: 3.406 MB / 1.167 GB, free: 10.17 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.5505, allocations: 0.5553 MB / 1.167 GB, free: 9.879 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0208/0.5713, allocations: 19.36 MB / 1.186 GB, free: 8.18 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006777/0.5719, allocations: 0.8912 MB / 1.187 GB, free: 7.254 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.00083/0.5728, allocations: 429.6 kB / 1.187 GB, free: 6.828 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005847/0.5734, allocations: 0.6252 MB / 1.188 GB, free: 6.199 MB / 1.01 GB Notification: Performance of SimCode: time 7.01e-07/0.5734, allocations: 0 / 1.188 GB, free: 6.199 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07237/0.6457, allocations: 56.45 MB / 1.243 GB, free: 14.67 MB / 1.073 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.552/8.198, allocations: 16.44 kB / 1.243 GB, free: 14.66 MB / 1.073 GB " [Timeout remaining time 292] (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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: 12.086331638507545]