Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.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.Rectifier6pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulse",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.001185/0.001185, allocations: 184.1 kB / 8.135 MB, free: 2.223 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.118/1.118, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.0009502/0.0009502, allocations: 102.4 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08885/0.08983, allocations: 55.83 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.2659, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08703/0.353, allocations: 90.26 MB / 477.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.3532, allocations: 83.89 kB / 477.3 MB, free: 12.42 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: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.2731/0.6263, allocations: 65.36 MB / 0.53 GB, free: 78.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.6264, allocations: 8 kB / 0.53 GB, free: 78.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.6274, allocations: 316.7 kB / 0.5303 GB, free: 77.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002755/0.6302, allocations: 1.583 MB / 0.5318 GB, free: 76.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.609e-05/0.6302, allocations: 68 kB / 0.5319 GB, free: 76.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003773/0.6306, allocations: 132 kB / 0.532 GB, free: 75.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003658/0.6343, allocations: 2.363 MB / 0.5343 GB, free: 73.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004125/0.6384, allocations: 2.758 MB / 0.537 GB, free: 70.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.268e-05/0.6385, allocations: 0 / 0.537 GB, free: 70.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002033/0.6387, allocations: 7.938 kB / 0.537 GB, free: 70.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.89e-05/0.6388, allocations: 116.4 kB / 0.5372 GB, free: 70.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01112/0.6499, allocations: 8.529 MB / 0.5455 GB, free: 61.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/0.6517, allocations: 1.677 MB / 0.5471 GB, free: 60.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/0.6533, allocations: 1.415 MB / 0.5485 GB, free: 58.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002483/0.6536, allocations: 138.3 kB / 0.5486 GB, free: 58.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.6536, allocations: 59.72 kB / 0.5487 GB, free: 58.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 3.387e-06/0.6536, allocations: 0 / 0.5487 GB, free: 58.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.005868/0.6595, allocations: 4.018 MB / 0.5526 GB, free: 54.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.135e-05/0.6595, allocations: 72.7 kB / 0.5527 GB, free: 54.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001296/0.6608, allocations: 1.081 MB / 0.5537 GB, free: 53.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.652e-05/0.6609, allocations: 29.69 kB / 0.5538 GB, free: 53.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002343/0.6611, allocations: 0.7677 MB / 0.5545 GB, free: 52.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002166/0.6614, allocations: 425.5 kB / 0.5549 GB, free: 52.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-05/0.6614, allocations: 0 / 0.5549 GB, free: 52.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.262e-05/0.6615, allocations: 353.9 kB / 0.5553 GB, free: 51.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000741/0.6622, allocations: 0.6741 MB / 0.5559 GB, free: 51.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007938/0.6631, allocations: 0.8362 MB / 0.5567 GB, free: 50.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008851/0.6639, allocations: 0.7948 MB / 0.5575 GB, free: 49.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.664, allocations: 4 kB / 0.5575 GB, free: 49.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002802/0.6668, allocations: 2.194 MB / 0.5597 GB, free: 47.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.6668, allocations: 4 kB / 0.5597 GB, free: 47.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.6668, allocations: 4 kB / 0.5597 GB, free: 47.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.6683, allocations: 0.7058 MB / 0.5604 GB, free: 46.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008674/0.6692, allocations: 211.7 kB / 0.5606 GB, free: 46.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007892/0.6771, allocations: 9.819 MB / 0.5701 GB, free: 36.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008898/0.678, allocations: 19.98 kB / 0.5702 GB, free: 36.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.6781, allocations: 47.98 kB / 0.5702 GB, free: 35.97 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 99 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002194/0.6784, allocations: 127.8 kB / 0.5703 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002733/0.6786, allocations: 142.3 kB / 0.5705 GB, free: 35.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002722/0.6814, allocations: 2.07 MB / 0.5725 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.6814, allocations: 12 kB / 0.5725 GB, free: 33.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.6814, allocations: 4 kB / 0.5725 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.6814, allocations: 11.88 kB / 0.5725 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005809/0.6872, allocations: 4.278 MB / 0.5767 GB, free: 29.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.6872, allocations: 0 / 0.5767 GB, free: 29.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007396/0.688, allocations: 167.8 kB / 0.5769 GB, free: 29.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001457/0.6895, allocations: 0.6905 MB / 0.5775 GB, free: 28.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.482e-05/0.6896, allocations: 11.98 kB / 0.5775 GB, free: 28.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007698/0.6973, allocations: 9.788 MB / 0.5871 GB, free: 18.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.6973, allocations: 0 / 0.5871 GB, free: 18.15 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003536/0.7008, allocations: 3.198 MB / 0.5902 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004471/0.7053, allocations: 4.652 MB / 0.5948 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006799/0.706, allocations: 391.3 kB / 0.5951 GB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002709/0.7063, allocations: 11.89 kB / 0.5952 GB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007653/0.7071, allocations: 47.91 kB / 0.5952 GB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.7072, allocations: 81.19 kB / 0.5953 GB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-05/0.7073, allocations: 35.98 kB / 0.5953 GB, free: 9.648 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009514/0.7083, allocations: 0.8327 MB / 0.5961 GB, free: 8.809 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002123/0.7104, allocations: 472 kB / 0.5966 GB, free: 8.348 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i) * Number of discrete variables: 6 (diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003034/0.7107, allocations: 182.8 kB / 0.5967 GB, free: 8.168 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002551/0.7133, allocations: 2.207 MB / 0.5989 GB, free: 5.922 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7133, allocations: 0 / 0.5989 GB, free: 5.922 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001687/0.715, allocations: 1.433 MB / 0.6003 GB, free: 4.449 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.7164, allocations: 312.4 kB / 0.6006 GB, free: 4.141 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006884/0.7233, allocations: 3.738 MB / 0.6043 GB, free: 364 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00225/0.7256, allocations: 2.135 MB / 0.6063 GB, free: 14.18 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.7256, allocations: 0 / 0.6063 GB, free: 14.18 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulse.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse_res.mat does not exist to compare? outputFormat=mat