Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.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.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V.1.|sen.V.2.|sen.V.3.|sen_N.V.1.|sen_N.V.2.|sen_N.V.3.|sen.theta.1.|sen.theta.2.|sen.theta.3.|sen_N.theta.1.|sen_N.theta.2.|sen_N.theta.3.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V.1.|sen.V.2.|sen.V.3.|sen_N.V.1.|sen_N.V.2.|sen_N.V.3.|sen.theta.1.|sen.theta.2.|sen.theta.3.|sen_N.theta.1.|sen_N.theta.2.|sen_N.theta.3.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource") [: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.705/1.705, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009226/0.0009226, allocations: 177.3 kB / 490.8 MB, free: 1.906 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.06/1.06, allocations: 221.4 MB / 0.7863 GB, free: 13.61 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.0008101/0.0008102, allocations: 95.36 kB / 0.9264 GB, free: 14.15 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.049e-06/5.079e-06, allocations: 0 / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1629, allocations: 143 MB / 1.212 GB, free: 40.06 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4733/0.6362, allocations: 186.3 MB / 1.394 GB, free: 13.34 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.6365, allocations: 94.03 kB / 1.394 GB, free: 13.32 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.2046/0.8411, allocations: 101.5 MB / 1.493 GB, free: 8.258 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 8.985e-05/0.8412, allocations: 63.98 kB / 1.493 GB, free: 8.195 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: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.00428/0.8455, allocations: 2.183 MB / 1.495 GB, free: 5.957 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.8455, allocations: 12.53 kB / 1.495 GB, free: 5.945 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003852/0.8494, allocations: 0.6838 MB / 1.496 GB, free: 5.258 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00237/0.8518, allocations: 1.457 MB / 1.497 GB, free: 3.754 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.37e-05/0.8518, allocations: 88 kB / 1.497 GB, free: 3.668 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003849/0.8522, allocations: 151.9 kB / 1.497 GB, free: 3.52 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004462/0.8567, allocations: 3.079 MB / 1.5 GB, free: 444 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005245/0.862, allocations: 3.864 MB / 1.504 GB, free: 12.37 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.868e-05/0.862, allocations: 19.86 kB / 1.504 GB, free: 12.35 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002307/0.8623, allocations: 8 kB / 1.504 GB, free: 12.34 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001492/0.8624, allocations: 168.3 kB / 1.504 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01907/0.8815, allocations: 21.16 MB / 1.525 GB, free: 5.031 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005195/0.882, allocations: 0.5357 MB / 1.525 GB, free: 4.422 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005226/0.8826, allocations: 0.513 MB / 1.526 GB, free: 3.887 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 3.104e-05/0.8826, allocations: 7.984 kB / 1.526 GB, free: 3.879 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.8826, allocations: 54.48 kB / 1.526 GB, free: 3.816 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=50): time 1.793e-06/0.8826, allocations: 0 / 1.526 GB, free: 3.816 MB / 0.9323 GB Notification: Performance of matching and sorting (n=56): time 0.00423/0.8869, allocations: 3.615 MB / 1.529 GB, free: 148 kB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/0.887, allocations: 251.4 kB / 1.53 GB, free: 15.84 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.8882, allocations: 1.146 MB / 1.531 GB, free: 14.68 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.714e-05/0.8882, allocations: 25.7 kB / 1.531 GB, free: 14.64 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005465/0.8888, allocations: 1.155 MB / 1.532 GB, free: 13.47 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.8889, allocations: 213.1 kB / 1.532 GB, free: 13.26 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.776e-05/0.889, allocations: 4 kB / 1.532 GB, free: 13.25 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.8892, allocations: 402.7 kB / 1.533 GB, free: 12.85 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008937/0.8901, allocations: 0.7808 MB / 1.533 GB, free: 12.07 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.8913, allocations: 1.458 MB / 1.535 GB, free: 10.28 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.8928, allocations: 1.143 MB / 1.536 GB, free: 9.137 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.8928, allocations: 8 kB / 1.536 GB, free: 9.129 MB / 0.948 GB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003017/0.8959, allocations: 2.281 MB / 1.538 GB, free: 6.84 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00252/0.8984, allocations: 9.372 MB / 1.547 GB, free: 12.73 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.824e-05/0.8984, allocations: 24 kB / 1.547 GB, free: 12.71 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.805e-05/0.8985, allocations: 36 kB / 1.547 GB, free: 12.67 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.8999, allocations: 411.3 kB / 1.548 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.468e-05/0.9, allocations: 51.78 kB / 1.548 GB, free: 12.22 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.9014, allocations: 163.5 kB / 1.548 GB, free: 12.06 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.9015, allocations: 87.97 kB / 1.548 GB, free: 11.97 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/0.9015, allocations: 4 kB / 1.548 GB, free: 11.97 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002509/0.904, allocations: 1.91 MB / 1.55 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.019e-05/0.9041, allocations: 24 kB / 1.55 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.002e-05/0.9041, allocations: 39.91 kB / 1.55 GB, free: 9.996 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.9054, allocations: 383.3 kB / 1.55 GB, free: 9.621 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.434e-05/0.9054, allocations: 51.78 kB / 1.55 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009474/0.9064, allocations: 112 kB / 1.55 GB, free: 9.461 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.9065, allocations: 83.98 kB / 1.551 GB, free: 9.379 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 192 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001855/0.9067, allocations: 164.3 kB / 1.551 GB, free: 9.211 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002695/0.9069, allocations: 98.78 kB / 1.551 GB, free: 9.113 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001064/0.908, allocations: 0.8854 MB / 1.552 GB, free: 8.219 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.908, allocations: 12 kB / 1.552 GB, free: 8.207 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.908, allocations: 0 / 1.552 GB, free: 8.207 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.9081, allocations: 11.97 kB / 1.552 GB, free: 8.195 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008122/0.9162, allocations: 8.03 MB / 1.56 GB, free: 15.96 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.9162, allocations: 12 kB / 1.56 GB, free: 15.95 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004346/0.9167, allocations: 123.8 kB / 1.56 GB, free: 15.82 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-05/0.9167, allocations: 16 kB / 1.56 GB, free: 15.81 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.768e-05/0.9167, allocations: 19.94 kB / 1.56 GB, free: 15.79 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.517e-05/0.9167, allocations: 23.92 kB / 1.56 GB, free: 15.77 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.029e-05/0.9168, allocations: 19.94 kB / 1.56 GB, free: 15.75 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001589/0.9184, allocations: 2.372 MB / 1.562 GB, free: 12.88 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004417/0.9188, allocations: 331.7 kB / 1.562 GB, free: 12.54 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.919, allocations: 19.98 kB / 1.562 GB, free: 12.52 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008783/0.9199, allocations: 71.81 kB / 1.562 GB, free: 12.45 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.693e-05/0.92, allocations: 67.66 kB / 1.563 GB, free: 12.38 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.102e-05/0.92, allocations: 28 kB / 1.563 GB, free: 12.35 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.0009281/0.9209, allocations: 0.868 MB / 1.563 GB, free: 11.47 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.002162/0.9231, allocations: 0.7577 MB / 1.564 GB, free: 10.71 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 56 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001755/0.9233, allocations: 149.8 kB / 1.564 GB, free: 10.56 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.002688/0.926, allocations: 2.501 MB / 1.567 GB, free: 8.07 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.926, allocations: 4 kB / 1.567 GB, free: 8.066 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.000464/0.9265, allocations: 462.8 kB / 1.567 GB, free: 7.617 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.9275, allocations: 198.5 kB / 1.567 GB, free: 7.426 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005024/0.9325, allocations: 3.496 MB / 1.571 GB, free: 3.707 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002019/0.9346, allocations: 2.139 MB / 1.573 GB, free: 1.539 MB / 0.9792 GB Notification: Performance of SimCode: time 1.493e-06/0.9346, allocations: 0 / 1.573 GB, free: 1.539 MB / 0.9792 GB Notification: Performance of Templates: time 0.02906/0.9636, allocations: 21.32 MB / 1.594 GB, free: 12.33 MB / 1.01 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_FixedVoltageSource.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.FixedVoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches