Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse",fmuType="me",version="2.0",platforms={"static"}) [: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.001516/0.001516, allocations: 184.9 kB / 8.139 MB, free: 2.207 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.1/1.1, allocations: 221.4 MB / 229.9 MB, free: 3.238 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.00102/0.00102, allocations: 93.66 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09508/0.09613, allocations: 55.83 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.2631, allocations: 50.4 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0881/0.3513, allocations: 91.85 MB / 478.9 MB, free: 10.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001935/0.3515, allocations: 79.95 kB / 478.9 MB, free: 10.75 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1046 * Number of variables: 1046 Notification: Performance of Generate backend data structure: time 0.3836/0.7351, allocations: 119.6 MB / 0.5846 GB, free: 8.703 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.7351, allocations: 19.94 kB / 0.5846 GB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001694/0.7368, allocations: 0.5527 MB / 0.5851 GB, free: 8.125 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004351/0.7412, allocations: 2.732 MB / 0.5878 GB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.203e-05/0.7413, allocations: 132 kB / 0.5879 GB, free: 5.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004424/0.7417, allocations: 239.8 kB / 0.5881 GB, free: 4.992 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005613/0.7474, allocations: 4.37 MB / 0.5924 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007114/0.7545, allocations: 5.059 MB / 0.5973 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.811e-05/0.7546, allocations: 15.88 kB / 0.5974 GB, free: 11.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000318/0.7549, allocations: 4 kB / 0.5974 GB, free: 11.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001665/0.7551, allocations: 212 kB / 0.5976 GB, free: 11.13 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02171/0.7768, allocations: 15.78 MB / 0.613 GB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004198/0.781, allocations: 3.344 MB / 0.6162 GB, free: 7.926 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00345/0.7845, allocations: 2.8 MB / 0.619 GB, free: 5.133 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003046/0.7848, allocations: 147 kB / 0.6191 GB, free: 4.973 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.7848, allocations: 68.55 kB / 0.6192 GB, free: 4.895 MB / 410.7 MB Notification: Performance of pre-optimization done (n=249): time 4.398e-06/0.7848, allocations: 0 / 0.6192 GB, free: 4.895 MB / 410.7 MB Notification: Performance of matching and sorting (n=256): time 0.01213/0.797, allocations: 7.605 MB / 0.6266 GB, free: 13.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.797, allocations: 81.42 kB / 0.6267 GB, free: 13.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002395/0.7994, allocations: 1.85 MB / 0.6285 GB, free: 11.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.7996, allocations: 25.7 kB / 0.6285 GB, free: 11.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006291/0.8002, allocations: 1.297 MB / 0.6298 GB, free: 9.863 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005602/0.8008, allocations: 0.8078 MB / 0.6306 GB, free: 9.047 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.8009, allocations: 0 / 0.6306 GB, free: 9.047 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.8011, allocations: 402.7 kB / 0.631 GB, free: 8.648 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/0.8028, allocations: 1.313 MB / 0.6322 GB, free: 7.332 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00187/0.8046, allocations: 1.597 MB / 0.6338 GB, free: 5.648 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002058/0.8067, allocations: 1.561 MB / 0.6353 GB, free: 4.066 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.8067, allocations: 0 / 0.6353 GB, free: 4.066 MB / 426.7 MB Notification: Performance of matching and sorting (n=301) (initialization): time 0.006374/0.8131, allocations: 4.25 MB / 0.6395 GB, free: 15.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.8131, allocations: 4 kB / 0.6395 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.8132, allocations: 7.984 kB / 0.6395 GB, free: 15.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003217/0.8164, allocations: 1.421 MB / 0.6409 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.818, allocations: 399.5 kB / 0.6413 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1279/0.9459, allocations: 21.93 MB / 0.6627 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.9476, allocations: 38.55 kB / 0.6627 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000267/0.9479, allocations: 78.06 kB / 0.6628 GB, free: 113.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 12 (diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off,diode3.idealDiode[1].off,diode3.idealDiode[2].off,diode3.idealDiode[3].off,diode4.idealDiode[1].off,diode4.idealDiode[2].off,diode4.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 186 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(1,100.0%) 9,(1,100.0%) 9,(2,100.0%) 29} * Non-linear torn systems: 6 {2 7,2 7,2 7,2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004133/0.9483, allocations: 144.2 kB / 0.6629 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005045/0.9488, allocations: 268.2 kB / 0.6632 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005299/0.9542, allocations: 3.995 MB / 0.6671 GB, free: 113.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.9542, allocations: 23.91 kB / 0.6671 GB, free: 113.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.9542, allocations: 9.375 kB / 0.6671 GB, free: 113.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.9542, allocations: 11.25 kB / 0.6671 GB, free: 113.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.9647, allocations: 8.07 MB / 0.675 GB, free: 113.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.9647, allocations: 0 / 0.675 GB, free: 113.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.966, allocations: 305.1 kB / 0.6753 GB, free: 113.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002844/0.9688, allocations: 1.392 MB / 0.6767 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/0.969, allocations: 24.22 kB / 0.6767 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01667/0.9857, allocations: 21.9 MB / 0.6981 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.9857, allocations: 0 / 0.6981 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007026/0.9927, allocations: 6.108 MB / 0.704 GB, free: 99.91 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008693/1.001, allocations: 8.593 MB / 0.7124 GB, free: 98.94 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/1.003, allocations: 0.6492 MB / 0.713 GB, free: 98.72 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003923/1.003, allocations: 17.23 kB / 0.7131 GB, free: 98.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/1.004, allocations: 81.05 kB / 0.7131 GB, free: 98.72 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002839/1.004, allocations: 150.7 kB / 0.7133 GB, free: 98.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/1.005, allocations: 67 kB / 0.7133 GB, free: 98.72 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001701/1.006, allocations: 1.418 MB / 0.7147 GB, free: 98.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003216/1.01, allocations: 0.8448 MB / 0.7156 GB, free: 98.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i,transformer2.l2sigma.inductor[1].i,transformer2.l2sigma.inductor[2].i,transformer2.l2sigma.inductor[3].i) * Number of discrete variables: 12 (diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off,diode3.idealDiode[1].off,diode3.idealDiode[2].off,diode3.idealDiode[3].off,diode4.idealDiode[1].off,diode4.idealDiode[2].off,diode4.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (151): * Single equations (assignments): 141 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 29,(1,100.0%) 9,(1,100.0%) 9,(1,100.0%) 9} * Non-linear torn systems: 6 {2 7,2 7,2 7,2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003843/1.01, allocations: 236.4 kB / 0.7158 GB, free: 98.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004829/1.015, allocations: 4.464 MB / 0.7201 GB, free: 97.41 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/1.015, allocations: 0 / 0.7201 GB, free: 97.41 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003229/1.018, allocations: 3.004 MB / 0.7231 GB, free: 96.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/1.02, allocations: 0.5778 MB / 0.7236 GB, free: 96.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/1.032, allocations: 7.039 MB / 0.7305 GB, free: 94.31 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00312/1.035, allocations: 3.349 MB / 0.7338 GB, free: 93.07 MB / 442.7 MB Notification: Performance of SimCode: time 4.91e-07/1.035, allocations: 3.125 kB / 0.7338 GB, free: 93.07 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse_res.mat does not exist to compare? outputFormat=mat