Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|probe_Y_1.V.1.|probe_Y_1.V.2.|probe_Y_1.V.3.|probe_D_1.V.1.|probe_D_1.V.2.|probe_D_1.V.3.|probe_2.V.1.|probe_2.V.2.|probe_2.V.3.|probe_Y_1.theta.1.|probe_Y_1.theta.2.|probe_Y_1.theta.3.|probe_D_1.theta.1.|probe_D_1.theta.2.|probe_D_1.theta.3.|probe_2.theta.1.|probe_2.theta.2.|probe_2.theta.3.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|probe_Y_1.V.1.|probe_Y_1.V.2.|probe_Y_1.V.3.|probe_D_1.V.1.|probe_D_1.V.2.|probe_D_1.V.3.|probe_2.V.1.|probe_2.V.2.|probe_2.V.3.|probe_Y_1.theta.1.|probe_Y_1.theta.2.|probe_Y_1.theta.3.|probe_D_1.theta.1.|probe_D_1.theta.2.|probe_D_1.theta.3.|probe_2.theta.1.|probe_2.theta.2.|probe_2.theta.3.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull") [: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 7.0.3-maint.7.0.x/package.mo): time 1.352/1.352, allocations: 249.4 MB / 256.7 MB, free: 7.004 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 180.2 kB / 316 MB, free: 3.531 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.2 MB / 0.5667 GB, free: 15.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009874/0.0009874, allocations: 93.52 kB / 0.671 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.388e-06/9.408e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.208, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5887/0.7967, allocations: 186.3 MB / 1.067 GB, free: 2.82 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003049/0.7971, allocations: 93 kB / 1.067 GB, free: 2.77 MB / 0.6823 GB Notification: Performance of FrontEnd: time 0.2803/1.077, allocations: 119.6 MB / 1.183 GB, free: 4.098 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 0.0001328/1.078, allocations: 60 kB / 1.183 GB, free: 4.039 MB / 0.7917 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 792 * Number of variables: 792 Notification: Performance of Generate backend data structure: time 0.008425/1.086, allocations: 2.462 MB / 1.186 GB, free: 1.52 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/1.086, allocations: 8.031 kB / 1.186 GB, free: 1.512 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01293/1.099, allocations: 1.651 MB / 1.187 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005445/1.105, allocations: 1.794 MB / 1.189 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/1.105, allocations: 96 kB / 1.189 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001314/1.106, allocations: 164 kB / 1.189 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009687/1.116, allocations: 4.237 MB / 1.194 GB, free: 9.52 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/1.127, allocations: 4.656 MB / 1.198 GB, free: 4.797 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.047e-05/1.128, allocations: 7.906 kB / 1.198 GB, free: 4.789 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004155/1.128, allocations: 0 / 1.198 GB, free: 4.789 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004815/1.129, allocations: 250 kB / 1.198 GB, free: 4.543 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03163/1.16, allocations: 22.1 MB / 1.22 GB, free: 12.44 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002453/1.163, allocations: 1.62 MB / 1.222 GB, free: 10.81 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/1.165, allocations: 1.245 MB / 1.223 GB, free: 9.562 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000232/1.165, allocations: 118.1 kB / 1.223 GB, free: 9.43 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/1.165, allocations: 51.5 kB / 1.223 GB, free: 9.371 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=122): time 3.467e-06/1.165, allocations: 0 / 1.223 GB, free: 9.371 MB / 0.8386 GB Notification: Performance of matching and sorting (n=173): time 0.01739/1.182, allocations: 7.18 MB / 1.23 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/1.182, allocations: 73.34 kB / 1.23 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/1.184, allocations: 0.9854 MB / 1.231 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.000331/1.185, allocations: 29.7 kB / 1.231 GB, free: 1.047 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009146/1.186, allocations: 1.196 MB / 1.232 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008264/1.186, allocations: 0.5736 MB / 1.233 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/1.187, allocations: 0 / 1.233 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002886/1.187, allocations: 447.5 kB / 1.233 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002564/1.189, allocations: 1.547 MB / 1.235 GB, free: 13.25 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003082/1.193, allocations: 2.246 MB / 1.237 GB, free: 10.68 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004671/1.197, allocations: 2.219 MB / 1.239 GB, free: 8.461 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-05/1.197, allocations: 4 kB / 1.239 GB, free: 8.457 MB / 0.8542 GB Notification: Performance of matching and sorting (n=301) (initialization): time 0.01302/1.21, allocations: 5.412 MB / 1.244 GB, free: 3.016 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.004126/1.215, allocations: 8.865 MB / 1.253 GB, free: 9.457 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.034e-05/1.215, allocations: 23.94 kB / 1.253 GB, free: 9.434 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005208/1.22, allocations: 1.418 MB / 1.254 GB, free: 7.996 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003786/1.224, allocations: 0.6513 MB / 1.255 GB, free: 7.344 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3264/1.55, allocations: 15.94 MB / 1.271 GB, free: 347.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003518/1.554, allocations: 318.1 kB / 1.271 GB, free: 347.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004398/1.554, allocations: 120.8 kB / 1.271 GB, free: 347.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.819e-06/1.554, allocations: 3.906 kB / 1.271 GB, free: 347.9 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009226/1.563, allocations: 5.117 MB / 1.276 GB, free: 347.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.854e-05/1.564, allocations: 23.53 kB / 1.276 GB, free: 347.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003516/1.567, allocations: 1.349 MB / 1.277 GB, free: 347.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003725/1.571, allocations: 0.6607 MB / 1.278 GB, free: 347.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01681/1.588, allocations: 15.37 MB / 1.293 GB, free: 340.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003367/1.591, allocations: 306.8 kB / 1.293 GB, free: 340.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003006/1.591, allocations: 122.8 kB / 1.293 GB, free: 340.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 102 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 229 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,100.0%) 9,(3,100.0%) 9,(3,100.0%) 9,(3,100.0%) 9,(3,100.0%) 9,(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005585/1.592, allocations: 170.8 kB / 1.294 GB, free: 340.6 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002933/1.592, allocations: 138.3 kB / 1.294 GB, free: 340.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009086/1.601, allocations: 5.003 MB / 1.299 GB, free: 340.3 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/1.601, allocations: 19.62 kB / 1.299 GB, free: 340.3 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.777e-05/1.601, allocations: 10.94 kB / 1.299 GB, free: 340.3 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.946e-05/1.601, allocations: 14.09 kB / 1.299 GB, free: 340.3 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/1.614, allocations: 8.16 MB / 1.307 GB, free: 339.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/1.615, allocations: 7.594 kB / 1.307 GB, free: 339.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002363/1.617, allocations: 425.8 kB / 1.307 GB, free: 339.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003439/1.62, allocations: 1.183 MB / 1.308 GB, free: 339.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002894/1.621, allocations: 32.77 kB / 1.308 GB, free: 339.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01621/1.637, allocations: 15.22 MB / 1.323 GB, free: 331.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/1.637, allocations: 7.375 kB / 1.323 GB, free: 331.2 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007646/1.645, allocations: 4.489 MB / 1.327 GB, free: 329.1 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/1.646, allocations: 0.5384 MB / 1.328 GB, free: 328.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000335/1.646, allocations: 15.47 kB / 1.328 GB, free: 328.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00254/1.649, allocations: 290.3 kB / 1.328 GB, free: 328.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/1.649, allocations: 98.03 kB / 1.328 GB, free: 328.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/1.649, allocations: 68.12 kB / 1.328 GB, free: 328.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0009898/1.65, allocations: 0.7598 MB / 1.329 GB, free: 328.4 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004084/1.654, allocations: 1.144 MB / 1.33 GB, free: 328.4 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 98 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 10,(2,100.0%) 10,(2,100.0%) 10,(2,100.0%) 10,(2,100.0%) 10,(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003435/1.655, allocations: 143.1 kB / 1.33 GB, free: 328.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01138/1.666, allocations: 7.466 MB / 1.338 GB, free: 325 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.666, allocations: 0 / 1.338 GB, free: 325 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.004675/1.671, allocations: 2.583 MB / 1.34 GB, free: 323.8 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/1.672, allocations: 156.6 kB / 1.34 GB, free: 323.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01886/1.691, allocations: 6.098 MB / 1.346 GB, free: 321.8 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003385/1.694, allocations: 2.507 MB / 1.349 GB, free: 320.7 MB / 0.8698 GB Notification: Performance of SimCode: time 8.42e-07/1.694, allocations: 3.344 kB / 1.349 GB, free: 320.7 MB / 0.8698 GB Notification: Performance of Templates: time 0.08343/1.778, allocations: 58.48 MB / 1.406 GB, free: 283.9 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Conversion_Examples_TransformerFull.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerFull.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches