Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.761/1.761, allocations: 387.2 MB / 394.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009415/0.0009415, allocations: 180.4 kB / 487 MB, free: 5.371 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.136/1.136, allocations: 221.3 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008125/0.0008124, allocations: 95.64 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.272e-06/6.302e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1824, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5499/0.7323, allocations: 202.7 MB / 1.403 GB, free: 6.949 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.7326, allocations: 101 kB / 1.403 GB, free: 6.895 MB / 0.8386 GB Notification: Performance of FrontEnd: time 0.1548/0.8874, allocations: 72.85 MB / 1.474 GB, free: 9.566 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 7.246e-05/0.8875, allocations: 43.92 kB / 1.474 GB, free: 9.523 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.002539/0.8901, allocations: 1.558 MB / 1.476 GB, free: 8.012 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.8901, allocations: 12.03 kB / 1.476 GB, free: 8 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002396/0.8925, allocations: 439.7 kB / 1.476 GB, free: 7.574 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001968/0.8945, allocations: 1.154 MB / 1.478 GB, free: 6.637 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.763e-05/0.8946, allocations: 52 kB / 1.478 GB, free: 6.586 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002166/0.8948, allocations: 87.38 kB / 1.478 GB, free: 6.504 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002574/0.8974, allocations: 1.836 MB / 1.479 GB, free: 5.316 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003108/0.9005, allocations: 2.281 MB / 1.482 GB, free: 3.629 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.04e-05/0.9005, allocations: 11.94 kB / 1.482 GB, free: 3.617 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.9007, allocations: 0 / 1.482 GB, free: 3.617 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.27e-05/0.9008, allocations: 89.56 kB / 1.482 GB, free: 3.535 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0108/0.9116, allocations: 10.19 MB / 1.492 GB, free: 9.488 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006437/0.9123, allocations: 0.5102 MB / 1.492 GB, free: 8.969 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000498/0.9128, allocations: 385.1 kB / 1.493 GB, free: 8.59 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.9129, allocations: 85.11 kB / 1.493 GB, free: 8.488 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.9129, allocations: 46.36 kB / 1.493 GB, free: 8.434 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=36): time 2.415e-06/0.913, allocations: 4 kB / 1.493 GB, free: 8.43 MB / 0.9167 GB Notification: Performance of matching and sorting (n=52): time 0.007991/0.921, allocations: 3.023 MB / 1.496 GB, free: 5.387 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.921, allocations: 85.48 kB / 1.496 GB, free: 5.285 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009412/0.922, allocations: 0.7414 MB / 1.496 GB, free: 4.539 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 6.807e-05/0.922, allocations: 25.7 kB / 1.496 GB, free: 4.508 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004031/0.9225, allocations: 0.6874 MB / 1.497 GB, free: 3.809 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.9226, allocations: 177.4 kB / 1.497 GB, free: 3.633 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.722e-05/0.9227, allocations: 4 kB / 1.497 GB, free: 3.629 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.9228, allocations: 386.8 kB / 1.498 GB, free: 3.242 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007518/0.9236, allocations: 0.6032 MB / 1.498 GB, free: 2.637 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009519/0.9245, allocations: 0.9622 MB / 1.499 GB, free: 1.5 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.9258, allocations: 0.8562 MB / 1.5 GB, free: 0.6484 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.9258, allocations: 4 kB / 1.5 GB, free: 0.6445 MB / 0.9167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.006072/0.9319, allocations: 2.482 MB / 1.502 GB, free: 14.14 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.001403/0.9333, allocations: 4.522 MB / 1.507 GB, free: 9.262 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.9334, allocations: 12 kB / 1.507 GB, free: 9.25 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004449/0.9378, allocations: 0.9437 MB / 1.508 GB, free: 8.293 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009173/0.9387, allocations: 211.6 kB / 1.508 GB, free: 8.086 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007415/0.9462, allocations: 6.393 MB / 1.514 GB, free: 1.41 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/0.9473, allocations: 111.8 kB / 1.514 GB, free: 1.301 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.022e-05/0.9474, allocations: 43.98 kB / 1.514 GB, free: 1.258 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 5.531e-06/0.9475, allocations: 4 kB / 1.514 GB, free: 1.254 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001958/0.9494, allocations: 1.307 MB / 1.516 GB, free: 15.95 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.9494, allocations: 15.94 kB / 1.516 GB, free: 15.93 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.9495, allocations: 16 kB / 1.516 GB, free: 15.91 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000971/0.9504, allocations: 255.8 kB / 1.516 GB, free: 15.66 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.81e-05/0.9505, allocations: 31.86 kB / 1.516 GB, free: 15.63 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007236/0.9512, allocations: 75.81 kB / 1.516 GB, free: 15.56 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-05/0.9513, allocations: 44 kB / 1.516 GB, free: 15.52 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002012/0.9515, allocations: 136.6 kB / 1.516 GB, free: 15.38 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.9516, allocations: 75.16 kB / 1.516 GB, free: 15.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005648/0.9573, allocations: 2.164 MB / 1.518 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.922e-06/0.9573, allocations: 8 kB / 1.518 GB, free: 13.1 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.9573, allocations: 8.062 kB / 1.518 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.9573, allocations: 3.984 kB / 1.518 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007751/0.9651, allocations: 3.787 MB / 1.522 GB, free: 9.199 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.9651, allocations: 8.25 kB / 1.522 GB, free: 9.191 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003931/0.9655, allocations: 87.88 kB / 1.522 GB, free: 9.105 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004843/0.9703, allocations: 1.217 MB / 1.523 GB, free: 7.875 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.017e-05/0.9704, allocations: 4 kB / 1.523 GB, free: 7.871 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/0.9805, allocations: 8.739 MB / 1.532 GB, free: 14.67 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.9806, allocations: 3.938 kB / 1.532 GB, free: 14.66 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005377/0.9859, allocations: 2.22 MB / 1.534 GB, free: 12.34 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000489/0.9865, allocations: 276.2 kB / 1.534 GB, free: 12.05 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.9866, allocations: 4 kB / 1.534 GB, free: 12.05 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009088/0.9875, allocations: 107.8 kB / 1.535 GB, free: 11.94 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.9876, allocations: 39.86 kB / 1.535 GB, free: 11.9 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.957e-05/0.9877, allocations: 16 kB / 1.535 GB, free: 11.89 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.0006706/0.9884, allocations: 0.5693 MB / 1.535 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.001728/0.9901, allocations: 0.5585 MB / 1.536 GB, free: 10.76 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003261/0.9904, allocations: 163.5 kB / 1.536 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.003295/0.9937, allocations: 2.363 MB / 1.538 GB, free: 8.215 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.9938, allocations: 0 / 1.538 GB, free: 8.215 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001531/0.9953, allocations: 1.109 MB / 1.539 GB, free: 7.066 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007693/0.9961, allocations: 188.7 kB / 1.539 GB, free: 6.887 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/1, allocations: 2.433 MB / 1.542 GB, free: 4.383 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00143/1.002, allocations: 1.692 MB / 1.543 GB, free: 2.656 MB / 0.9636 GB Notification: Performance of SimCode: time 6.01e-07/1.002, allocations: 4 kB / 1.543 GB, free: 2.652 MB / 0.9636 GB Notification: Performance of Templates: time 0.0313/1.033, allocations: 22.75 MB / 1.566 GB, free: 12.03 MB / 0.9948 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches