Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.conf.json 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) Running command: translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") [: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/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 180.4 kB / 8.131 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 221.4 MB / 229.9 MB, free: 2.992 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009013/0.0009013, allocations: 94.72 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.244e-06/7.264e-06, allocations: 4 kB / 336.5 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2118, allocations: 50.38 MB / 386.9 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09561/0.3074, allocations: 88.7 MB / 475.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.3077, allocations: 83.95 kB / 475.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.43/0.7377, allocations: 150.2 MB / 0.6112 GB, free: 10.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002857/0.7381, allocations: 95.88 kB / 0.6113 GB, free: 10.66 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1224 * Number of variables: 1224 Notification: Performance of Generate backend data structure: time 0.01397/0.752, allocations: 4.104 MB / 0.6153 GB, free: 6.492 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.7521, allocations: 12.03 kB / 0.6153 GB, free: 6.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005926/0.758, allocations: 0.9708 MB / 0.6163 GB, free: 5.504 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005657/0.7637, allocations: 2.743 MB / 0.619 GB, free: 2.711 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.7639, allocations: 140 kB / 0.6191 GB, free: 2.574 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008477/0.7648, allocations: 251.9 kB / 0.6193 GB, free: 2.328 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008863/0.7736, allocations: 4.634 MB / 0.6239 GB, free: 13.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01381/0.7875, allocations: 5.923 MB / 0.6297 GB, free: 7.582 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/0.7877, allocations: 7.938 kB / 0.6297 GB, free: 7.574 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003907/0.7881, allocations: 3.984 kB / 0.6297 GB, free: 7.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000371/0.7884, allocations: 325.3 kB / 0.63 GB, free: 7.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03265/0.8211, allocations: 19.89 MB / 0.6494 GB, free: 2.688 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001628/0.8228, allocations: 1.291 MB / 0.6507 GB, free: 1.391 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009919/0.8238, allocations: 0.7169 MB / 0.6514 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.8239, allocations: 109.8 kB / 0.6515 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.824, allocations: 43.34 kB / 0.6515 GB, free: 0.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=100): time 4.478e-06/0.824, allocations: 0 / 0.6515 GB, free: 0.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=100): time 0.1421/0.9661, allocations: 1.317 MB / 0.6528 GB, free: 113.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.368e-05/0.9661, allocations: 59.97 kB / 0.6528 GB, free: 113.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/0.9677, allocations: 1.253 MB / 0.6541 GB, free: 113.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.075e-05/0.9678, allocations: 25.7 kB / 0.6541 GB, free: 113.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006394/0.9684, allocations: 1.866 MB / 0.6559 GB, free: 113 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.9686, allocations: 353.8 kB / 0.6563 GB, free: 112.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-05/0.9687, allocations: 0 / 0.6563 GB, free: 112.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.9689, allocations: 450.8 kB / 0.6567 GB, free: 112.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009932/0.9699, allocations: 0.9022 MB / 0.6576 GB, free: 112.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/0.9713, allocations: 2.01 MB / 0.6595 GB, free: 111 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002038/0.9733, allocations: 1.461 MB / 0.661 GB, free: 111 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.306e-05/0.9734, allocations: 14.44 kB / 0.661 GB, free: 111 MB / 426.7 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.003853/0.9772, allocations: 2.82 MB / 0.6637 GB, free: 110.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.9772, allocations: 3.781 kB / 0.6637 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-05/0.9773, allocations: 40.59 kB / 0.6638 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.496e-05/0.9774, allocations: 60.53 kB / 0.6638 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/0.9791, allocations: 0.54 MB / 0.6644 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.453e-05/0.9791, allocations: 80.23 kB / 0.6644 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.9806, allocations: 251.5 kB / 0.6647 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001707/0.9807, allocations: 130.8 kB / 0.6648 GB, free: 110.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 281 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0002653/0.981, allocations: 198.1 kB / 0.665 GB, free: 110.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001972/0.9812, allocations: 135.3 kB / 0.6651 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002433/0.9837, allocations: 1.643 MB / 0.6667 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001473/0.9851, allocations: 1.158 MB / 0.6678 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.9852, allocations: 0 / 0.6678 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.9852, allocations: 7.266 kB / 0.6679 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/0.9992, allocations: 12.87 MB / 0.6804 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/0.9992, allocations: 20.62 kB / 0.6804 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008719/1, allocations: 218.7 kB / 0.6806 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.382e-05/1, allocations: 32.09 kB / 0.6807 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.962e-05/1, allocations: 35.05 kB / 0.6807 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.281e-05/1, allocations: 41.19 kB / 0.6808 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.737e-05/1, allocations: 30.56 kB / 0.6808 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003364/1.004, allocations: 4.109 MB / 0.6848 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006579/1.004, allocations: 351.2 kB / 0.6851 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002106/1.005, allocations: 35.14 kB / 0.6852 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008463/1.005, allocations: 52.06 kB / 0.6852 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/1.006, allocations: 118.7 kB / 0.6853 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.948e-05/1.006, allocations: 54.56 kB / 0.6854 GB, free: 104.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001177/1.007, allocations: 0.9333 MB / 0.6863 GB, free: 104.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002887/1.01, allocations: 0.9063 MB / 0.6872 GB, free: 104.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 93 * Number of states: 1 (currentSensor0.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0003725/1.01, allocations: 215.2 kB / 0.6874 GB, free: 104 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002549/1.013, allocations: 1.982 MB / 0.6893 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/1.013, allocations: 3.844 kB / 0.6893 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007369/1.013, allocations: 0.6702 MB / 0.69 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/1.015, allocations: 329.7 kB / 0.6903 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/1.026, allocations: 5.824 MB / 0.696 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003172/1.029, allocations: 3.278 MB / 0.6992 GB, free: 101.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.042e-06/1.029, allocations: 0 / 0.6992 GB, free: 101.3 MB / 426.7 MB Notification: Performance of Templates: time 0.03882/1.068, allocations: 20.98 MB / 0.7197 GB, free: 100.1 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/BalancingStar/BalancingStar.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches