Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.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.Loads.Examples.Impedances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_N.I.1.|sen_N.I.2.|sen_N.I.3.|sen_N.I.4.|sen.I.1.|sen.I.2.|sen.I.3.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_N.I.1.|sen_N.I.2.|sen_N.I.3.|sen_N.I.4.|sen.I.1.|sen.I.2.|sen.I.3.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances") [: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.769/1.769, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.0008881/0.0008881, allocations: 181.3 kB / 487 MB, free: 5.316 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.105/1.105, allocations: 221.3 MB / 0.7819 GB, free: 1.324 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.0008906/0.0008906, allocations: 89.94 kB / 0.9213 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.101e-06/6.121e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1807, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5077/0.6884, allocations: 178.3 MB / 1.379 GB, free: 14.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.6887, allocations: 100.7 kB / 1.379 GB, free: 14.02 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.1874/0.8761, allocations: 90.92 MB / 1.468 GB, free: 1.129 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.313e-05/0.8762, allocations: 59.98 kB / 1.468 GB, free: 1.07 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 641 * Number of variables: 641 Notification: Performance of Generate backend data structure: time 0.003422/0.8797, allocations: 2.151 MB / 1.47 GB, free: 15.01 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.8797, allocations: 16.03 kB / 1.47 GB, free: 14.99 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003812/0.8835, allocations: 0.676 MB / 1.471 GB, free: 14.32 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002511/0.8861, allocations: 1.539 MB / 1.473 GB, free: 13.1 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.134e-05/0.8861, allocations: 79.94 kB / 1.473 GB, free: 13.02 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003093/0.8865, allocations: 139.9 kB / 1.473 GB, free: 12.88 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004055/0.8905, allocations: 2.791 MB / 1.476 GB, free: 10.65 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004911/0.8954, allocations: 3.562 MB / 1.479 GB, free: 6.914 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.026e-05/0.8955, allocations: 4 kB / 1.479 GB, free: 6.91 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002144/0.8957, allocations: 4 kB / 1.479 GB, free: 6.906 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001413/0.8959, allocations: 164.5 kB / 1.479 GB, free: 6.742 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01503/0.9109, allocations: 15.99 MB / 1.495 GB, free: 5.312 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.912, allocations: 1.058 MB / 1.496 GB, free: 4.215 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007562/0.9128, allocations: 0.6174 MB / 1.496 GB, free: 3.59 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001279/0.9129, allocations: 101.6 kB / 1.497 GB, free: 3.469 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.913, allocations: 51.09 kB / 1.497 GB, free: 3.41 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=72): time 4.689e-06/0.913, allocations: 4 kB / 1.497 GB, free: 3.406 MB / 0.9167 GB Notification: Performance of matching and sorting (n=76): time 0.004109/0.9171, allocations: 2.807 MB / 1.499 GB, free: 0.5703 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.9172, allocations: 115.5 kB / 1.499 GB, free: 444 kB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009191/0.9181, allocations: 0.852 MB / 1.5 GB, free: 15.57 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 4.599e-05/0.9181, allocations: 29.7 kB / 1.5 GB, free: 15.54 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004298/0.9186, allocations: 0.9974 MB / 1.501 GB, free: 14.52 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.9188, allocations: 268.2 kB / 1.502 GB, free: 14.26 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.339e-05/0.9188, allocations: 0 / 1.502 GB, free: 14.26 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.919, allocations: 406.7 kB / 1.502 GB, free: 13.85 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007339/0.9197, allocations: 0.6325 MB / 1.503 GB, free: 13.21 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009908/0.9207, allocations: 1.165 MB / 1.504 GB, free: 11.8 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.9222, allocations: 1.006 MB / 1.505 GB, free: 10.79 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.9222, allocations: 8 kB / 1.505 GB, free: 10.79 MB / 0.9323 GB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002935/0.9252, allocations: 2.053 MB / 1.507 GB, free: 8.715 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.9252, allocations: 8 kB / 1.507 GB, free: 8.707 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.9252, allocations: 16 kB / 1.507 GB, free: 8.691 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003824/0.9256, allocations: 163.4 kB / 1.507 GB, free: 8.52 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.9267, allocations: 339.6 kB / 1.507 GB, free: 8.188 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.327e-05/0.9268, allocations: 35.86 kB / 1.507 GB, free: 8.152 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000882/0.9277, allocations: 107.5 kB / 1.507 GB, free: 8.047 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.633e-05/0.9278, allocations: 60 kB / 1.507 GB, free: 7.988 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001756/0.9279, allocations: 153.6 kB / 1.507 GB, free: 7.832 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000177/0.9281, allocations: 102.8 kB / 1.508 GB, free: 7.73 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002049/0.9302, allocations: 1.353 MB / 1.509 GB, free: 6.359 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.9302, allocations: 8 kB / 1.509 GB, free: 6.352 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.9302, allocations: 8 kB / 1.509 GB, free: 6.344 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.9302, allocations: 7.984 kB / 1.509 GB, free: 6.336 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004621/0.9349, allocations: 3.363 MB / 1.512 GB, free: 2.836 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.9349, allocations: 4 kB / 1.512 GB, free: 2.832 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006246/0.9355, allocations: 156 kB / 1.512 GB, free: 2.68 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003324/0.9358, allocations: 143.3 kB / 1.513 GB, free: 2.527 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.329e-05/0.9359, allocations: 4 kB / 1.513 GB, free: 2.523 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.983e-06/0.9359, allocations: 11.98 kB / 1.513 GB, free: 2.512 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.9359, allocations: 0 / 1.513 GB, free: 2.512 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001864/0.9378, allocations: 1.707 MB / 1.514 GB, free: 0.6875 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004064/0.9382, allocations: 295.7 kB / 1.514 GB, free: 388 kB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.9384, allocations: 7.984 kB / 1.514 GB, free: 380 kB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005908/0.939, allocations: 51.94 kB / 1.515 GB, free: 328 kB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.9391, allocations: 48.44 kB / 1.515 GB, free: 280 kB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.912e-05/0.9391, allocations: 24 kB / 1.515 GB, free: 256 kB / 0.9323 GB Notification: Performance of sort global known variables: time 0.0006899/0.9398, allocations: 0.6323 MB / 1.515 GB, free: 15.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001264/0.9411, allocations: 388 kB / 1.516 GB, free: 15.22 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001778/0.9413, allocations: 122.1 kB / 1.516 GB, free: 15.09 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.00179/0.9431, allocations: 1.746 MB / 1.517 GB, free: 13.26 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.9431, allocations: 6.438 kB / 1.517 GB, free: 13.26 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007864/0.9439, allocations: 0.9003 MB / 1.518 GB, free: 12.27 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009619/0.9449, allocations: 206 kB / 1.518 GB, free: 12.07 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004993/0.9499, allocations: 3.1 MB / 1.522 GB, free: 8.891 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001829/0.9517, allocations: 2.053 MB / 1.524 GB, free: 6.801 MB / 0.948 GB Notification: Performance of SimCode: time 5.51e-07/0.9517, allocations: 0 / 1.524 GB, free: 6.801 MB / 0.948 GB Notification: Performance of Templates: time 0.02251/0.9742, allocations: 14.55 MB / 1.538 GB, free: 8.379 MB / 0.9636 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches