Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.714/1.714, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009343/0.0009343, allocations: 181.2 kB / 490.8 MB, free: 1.957 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.061/1.061, allocations: 221.4 MB / 0.7863 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007342/0.0007342, allocations: 89.66 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.961e-06/6.051e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1681, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4813/0.6494, allocations: 203.5 MB / 1.41 GB, free: 13.85 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/0.6497, allocations: 95.97 kB / 1.41 GB, free: 13.8 MB / 0.8386 GB Notification: Performance of FrontEnd: time 0.1462/0.7959, allocations: 72.86 MB / 1.482 GB, free: 464 kB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.262e-05/0.7959, allocations: 32 kB / 1.482 GB, free: 432 kB / 0.8855 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.002572/0.7985, allocations: 1.565 MB / 1.483 GB, free: 14.9 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.7986, allocations: 12.02 kB / 1.483 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002322/0.8009, allocations: 441.4 kB / 1.484 GB, free: 14.46 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.8027, allocations: 1.146 MB / 1.485 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.8027, allocations: 48 kB / 1.485 GB, free: 13.48 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002175/0.8029, allocations: 95.86 kB / 1.485 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002444/0.8054, allocations: 1.832 MB / 1.487 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002934/0.8083, allocations: 2.283 MB / 1.489 GB, free: 10.52 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.542e-05/0.8084, allocations: 0 / 1.489 GB, free: 10.52 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/0.8085, allocations: 8 kB / 1.489 GB, free: 10.51 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.359e-05/0.8086, allocations: 90.25 kB / 1.489 GB, free: 10.43 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009199/0.8178, allocations: 10.19 MB / 1.499 GB, free: 1.133 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005921/0.8184, allocations: 0.5115 MB / 1.499 GB, free: 0.6758 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004562/0.8189, allocations: 392.5 kB / 1.5 GB, free: 296 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 9.82e-05/0.819, allocations: 89.09 kB / 1.5 GB, free: 188 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.819, allocations: 34.56 kB / 1.5 GB, free: 144 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=36): time 1.392e-06/0.819, allocations: 0 / 1.5 GB, free: 144 kB / 0.9011 GB Notification: Performance of matching and sorting (n=52): time 0.007327/0.8264, allocations: 3.023 MB / 1.503 GB, free: 13.09 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.8264, allocations: 89.55 kB / 1.503 GB, free: 12.99 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007553/0.8272, allocations: 0.7413 MB / 1.504 GB, free: 12.24 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 4.86e-05/0.8272, allocations: 25.7 kB / 1.504 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.8275, allocations: 0.6874 MB / 1.504 GB, free: 11.51 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.8277, allocations: 177.4 kB / 1.504 GB, free: 11.34 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.8277, allocations: 0 / 1.504 GB, free: 11.34 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.8279, allocations: 386.8 kB / 1.505 GB, free: 10.95 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007005/0.8286, allocations: 0.6071 MB / 1.505 GB, free: 10.34 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008796/0.8295, allocations: 0.9661 MB / 1.506 GB, free: 9.211 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.8306, allocations: 0.8523 MB / 1.507 GB, free: 8.355 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.8306, allocations: 4 kB / 1.507 GB, free: 8.352 MB / 0.9167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.005641/0.8363, allocations: 2.482 MB / 1.51 GB, free: 5.852 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001169/0.8375, allocations: 4.522 MB / 1.514 GB, free: 0.9727 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.8375, allocations: 15.98 kB / 1.514 GB, free: 0.957 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004118/0.8416, allocations: 0.9475 MB / 1.515 GB, free: 15.99 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007443/0.8424, allocations: 211.6 kB / 1.515 GB, free: 15.79 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006702/0.8491, allocations: 6.385 MB / 1.521 GB, free: 9.121 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009039/0.85, allocations: 107.8 kB / 1.522 GB, free: 9.016 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.533e-05/0.8501, allocations: 47.98 kB / 1.522 GB, free: 8.969 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 5.27e-06/0.8501, allocations: 4 kB / 1.522 GB, free: 8.965 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001756/0.8519, allocations: 1.307 MB / 1.523 GB, free: 7.66 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.8519, allocations: 12 kB / 1.523 GB, free: 7.648 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.8519, allocations: 20 kB / 1.523 GB, free: 7.629 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009253/0.8528, allocations: 255.6 kB / 1.523 GB, free: 7.379 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.8529, allocations: 27.95 kB / 1.523 GB, free: 7.352 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006318/0.8535, allocations: 71.83 kB / 1.523 GB, free: 7.281 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.141e-05/0.8536, allocations: 47.98 kB / 1.523 GB, free: 7.234 MB / 0.9323 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.0001682/0.8537, allocations: 145.7 kB / 1.523 GB, free: 7.086 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.8539, allocations: 75.06 kB / 1.523 GB, free: 7.012 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005268/0.8591, allocations: 2.16 MB / 1.526 GB, free: 4.828 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.8592, allocations: 8 kB / 1.526 GB, free: 4.82 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.8592, allocations: 4 kB / 1.526 GB, free: 4.816 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.8592, allocations: 3.984 kB / 1.526 GB, free: 4.812 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006985/0.8662, allocations: 3.803 MB / 1.529 GB, free: 0.9062 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.8662, allocations: 4.234 kB / 1.529 GB, free: 0.9023 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/0.8666, allocations: 99.88 kB / 1.529 GB, free: 0.8047 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004564/0.8711, allocations: 1.205 MB / 1.531 GB, free: 15.59 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.597e-05/0.8712, allocations: 4 kB / 1.531 GB, free: 15.58 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009166/0.8804, allocations: 8.743 MB / 1.539 GB, free: 6.375 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.8804, allocations: 4 kB / 1.539 GB, free: 6.371 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005019/0.8854, allocations: 2.221 MB / 1.541 GB, free: 4.043 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.8858, allocations: 272.1 kB / 1.542 GB, free: 3.758 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.8859, allocations: 12 kB / 1.542 GB, free: 3.746 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008807/0.8868, allocations: 103.8 kB / 1.542 GB, free: 3.645 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.8869, allocations: 39.86 kB / 1.542 GB, free: 3.605 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/0.887, allocations: 16 kB / 1.542 GB, free: 3.59 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0005642/0.8876, allocations: 0.5732 MB / 1.542 GB, free: 3.02 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001386/0.8889, allocations: 0.5585 MB / 1.543 GB, free: 2.461 MB / 0.948 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.0002509/0.8892, allocations: 175.6 kB / 1.543 GB, free: 2.281 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003005/0.8922, allocations: 2.349 MB / 1.545 GB, free: 15.91 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.8922, allocations: 0 / 1.545 GB, free: 15.91 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001458/0.8937, allocations: 1.112 MB / 1.546 GB, free: 14.76 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007081/0.8944, allocations: 186.1 kB / 1.547 GB, free: 14.59 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003704/0.8981, allocations: 2.429 MB / 1.549 GB, free: 12.1 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001357/0.8995, allocations: 1.696 MB / 1.551 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of SimCode: time 1.363e-06/0.8995, allocations: 0 / 1.551 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of Templates: time 0.02859/0.9281, allocations: 22.75 MB / 1.573 GB, free: 3.75 MB / 0.9792 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches