Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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.0008452/0.0008452, allocations: 87.58 kB / 20.45 MB, free: 4.117 MB / 18.57 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.0009841/0.0009841, allocations: 161 kB / 23.82 MB, free: 0.75 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.968/0.968, allocations: 177.1 MB / 204.2 MB, free: 5.254 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.878/1.878, allocations: 377.9 MB / 0.6236 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|R1.terminal.phase.[0-9,]+..v.[0-9,]+.|R2.terminal.phase.[0-9,]+..v.[0-9,]+.|R3.terminal.phase.[0-9,]+..v.[0-9,]+.|E.vPhase.[0-9,]+..terminal.v.[0-9,]+.|R1.load1.i.[0-9,]+.|R2.load1.i.[0-9,]+.|R3.load1.i.[0-9,]+.|sc_load.load1.i.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|R1.terminal.phase.[0-9,]+..v.[0-9,]+.|R2.terminal.phase.[0-9,]+..v.[0-9,]+.|R3.terminal.phase.[0-9,]+..v.[0-9,]+.|E.vPhase.[0-9,]+..terminal.v.[0-9,]+.|R1.load1.i.[0-9,]+.|R2.load1.i.[0-9,]+.|R3.load1.i.[0-9,]+.|sc_load.load1.i.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 0.8115 GB, free: 1.684 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.435e-05/2.599e-05, allocations: 4.703 kB / 0.8116 GB, free: 1.68 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.01717/0.01719, allocations: 21.51 MB / 0.8326 GB, free: 12.11 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.01029/0.02748, allocations: 6.167 MB / 0.8386 GB, free: 5.965 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002951/0.03043, allocations: 202.5 kB / 0.8388 GB, free: 5.766 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.002165/0.0326, allocations: 0.9235 MB / 0.8397 GB, free: 4.836 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.004013/0.03661, allocations: 2.045 MB / 0.8417 GB, free: 2.789 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.003643/0.04025, allocations: 1.852 MB / 0.8435 GB, free: 0.9336 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.009217/0.04947, allocations: 9.317 MB / 0.8526 GB, free: 7.59 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008292/0.05776, allocations: 6.187 MB / 0.8586 GB, free: 1.281 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009367/0.06713, allocations: 5.731 MB / 0.8642 GB, free: 11.54 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006357/0.07348, allocations: 4.486 MB / 0.8686 GB, free: 7.043 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 0.001867/0.07535, allocations: 0.8203 MB / 0.8694 GB, free: 6.223 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00237/0.07772, allocations: 0.9138 MB / 0.8703 GB, free: 5.309 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.003637/0.08136, allocations: 3.422 MB / 0.8736 GB, free: 1.879 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.00409/0.08545, allocations: 2.597 MB / 0.8762 GB, free: 15.28 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.007263/0.09271, allocations: 6.358 MB / 0.8824 GB, free: 8.902 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.09272, allocations: 0 / 0.8824 GB, free: 8.902 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.353e-06/0.09272, allocations: 0 / 0.8824 GB, free: 8.902 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.0002924/0.09301, allocations: 4 kB / 0.8824 GB, free: 8.898 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.009579/0.1026, allocations: 6.606 MB / 0.8888 GB, free: 2.223 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.1026, allocations: 11.97 kB / 0.8888 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004034/0.1067, allocations: 1.706 MB / 0.8905 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00524/0.1119, allocations: 3.503 MB / 0.8939 GB, free: 12.93 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002385/0.1122, allocations: 419.8 kB / 0.8943 GB, free: 12.52 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007652/0.1129, allocations: 0.5589 MB / 0.8949 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009148/0.1221, allocations: 6.273 MB / 0.901 GB, free: 5.023 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.856e-05/0.1222, allocations: 31.95 kB / 0.901 GB, free: 4.992 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004859/0.1227, allocations: 244.3 kB / 0.9013 GB, free: 4.754 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004285/0.1231, allocations: 426.8 kB / 0.9017 GB, free: 4.336 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004944/0.128, allocations: 2.141 MB / 0.9038 GB, free: 2.188 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02727/0.1553, allocations: 28.18 MB / 0.9313 GB, free: 5.258 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002101/0.1574, allocations: 1.419 MB / 0.9327 GB, free: 3.824 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.1586, allocations: 0.9258 MB / 0.9336 GB, free: 2.898 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.1587, allocations: 34 kB / 0.9336 GB, free: 2.867 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.044e-05/0.1588, allocations: 67.39 kB / 0.9337 GB, free: 2.789 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=209): time 4.488e-06/0.1588, allocations: 0 / 0.9337 GB, free: 2.789 MB / 0.8855 GB Notification: Performance of matching and sorting (n=212): time 0.01276/0.1716, allocations: 6.437 MB / 0.94 GB, free: 12.33 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.1716, allocations: 73.41 kB / 0.94 GB, free: 12.25 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001811/0.1734, allocations: 1.688 MB / 0.9417 GB, free: 10.52 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 9.404e-05/0.1735, allocations: 65.7 kB / 0.9417 GB, free: 10.45 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.001132/0.1746, allocations: 2.536 MB / 0.9442 GB, free: 7.891 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004641/0.1751, allocations: 0.7825 MB / 0.945 GB, free: 7.102 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000494/0.1756, allocations: 484 kB / 0.9454 GB, free: 6.621 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1757, allocations: 480.7 kB / 0.9459 GB, free: 6.148 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007417/0.1764, allocations: 473 kB / 0.9463 GB, free: 5.684 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00149/0.1779, allocations: 1.501 MB / 0.9478 GB, free: 3.754 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/0.18, allocations: 2.147 MB / 0.9499 GB, free: 1.18 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.18, allocations: 8 kB / 0.9499 GB, free: 1.172 MB / 0.9011 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.003942/0.1839, allocations: 2.867 MB / 0.9527 GB, free: 14.28 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.184, allocations: 16.97 kB / 0.9527 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/0.184, allocations: 20 kB / 0.9528 GB, free: 14.24 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002562/0.1866, allocations: 1.211 MB / 0.9539 GB, free: 13.02 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009503/0.1875, allocations: 451.2 kB / 0.9544 GB, free: 12.58 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/0.1995, allocations: 12.41 MB / 0.9665 GB, free: 15.68 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.2012, allocations: 143.9 kB / 0.9666 GB, free: 15.54 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002356/0.2014, allocations: 108 kB / 0.9667 GB, free: 15.44 MB / 0.9323 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001538/0.203, allocations: 323.8 kB / 0.967 GB, free: 15.11 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004967/0.2035, allocations: 342.3 kB / 0.9674 GB, free: 14.77 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003627/0.2071, allocations: 2.257 MB / 0.9696 GB, free: 12.48 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.2071, allocations: 20 kB / 0.9696 GB, free: 12.46 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-05/0.2071, allocations: 19.94 kB / 0.9696 GB, free: 12.45 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.2072, allocations: 11.95 kB / 0.9696 GB, free: 12.43 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009713/0.2169, allocations: 6.178 MB / 0.9756 GB, free: 6.105 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.2169, allocations: 4 kB / 0.9757 GB, free: 6.102 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005558/0.2174, allocations: 239.6 kB / 0.9759 GB, free: 5.867 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002319/0.2197, allocations: 1.053 MB / 0.9769 GB, free: 4.801 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.871e-05/0.2198, allocations: 40 kB / 0.9769 GB, free: 4.762 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01114/0.231, allocations: 12.35 MB / 0.989 GB, free: 7.918 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.231, allocations: 7.938 kB / 0.989 GB, free: 7.91 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004225/0.2352, allocations: 2.537 MB / 0.9915 GB, free: 5.262 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009847/0.2362, allocations: 0.5137 MB / 0.992 GB, free: 4.746 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002175/0.2364, allocations: 44 kB / 0.992 GB, free: 4.703 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006616/0.2371, allocations: 115.8 kB / 0.9921 GB, free: 4.59 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003798/0.2375, allocations: 193.5 kB / 0.9923 GB, free: 4.398 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.492e-05/0.2376, allocations: 60 kB / 0.9924 GB, free: 4.34 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0009963/0.2386, allocations: 0.9613 MB / 0.9933 GB, free: 3.363 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2386, allocations: 0 / 0.9933 GB, free: 3.363 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00258/0.2411, allocations: 1.137 MB / 0.9944 GB, free: 2.227 MB / 0.948 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000264/0.2414, allocations: 163 kB / 0.9946 GB, free: 2.055 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.004253/0.2457, allocations: 3.135 MB / 0.9977 GB, free: 14.84 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.2457, allocations: 4.312 kB / 0.9977 GB, free: 14.84 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.002426/0.2481, allocations: 2.28 MB / 0.9999 GB, free: 12.48 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002327/0.2504, allocations: 0.8263 MB / 1.001 GB, free: 11.67 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/0.2626, allocations: 8.434 MB / 1.009 GB, free: 3.09 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001602/0.2642, allocations: 1.404 MB / 1.01 GB, free: 1.66 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.001671/0.2659, allocations: 459.1 kB / 1.011 GB, free: 1.207 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003204/0.2662, allocations: 136.5 kB / 1.011 GB, free: 1.07 MB / 0.9636 GB Notification: Performance of SimCode: time 2.214e-06/0.2662, allocations: 0 / 1.011 GB, free: 1.07 MB / 0.9636 GB Notification: Performance of Templates: time 0.4029/0.6691, allocations: 52.55 MB / 1.062 GB, free: 248.8 MB / 1.01 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.689381645992398]