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/ModelicaServices 4.0.0+maint.om/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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 93.05 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 184.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000271/0.0002711, allocations: 5.156 kB / 300.8 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1364, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse): time 0.006766/0.1432, allocations: 5.578 MB / 356.8 MB, free: 6.059 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004843/0.1481, allocations: 2.214 MB / 359 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.1492, allocations: 39.81 kB / 359.1 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.1502, allocations: 366.1 kB / 359.4 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001678/0.1519, allocations: 0.5492 MB / 360 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.1524, allocations: 175.7 kB / 360.1 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002132/0.1545, allocations: 1.786 MB / 361.9 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001828/0.1564, allocations: 1.693 MB / 363.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.1579, allocations: 0.8836 MB / 364.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001759/0.1597, allocations: 1.066 MB / 365.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002794/0.16, allocations: 148 kB / 365.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005681/0.1605, allocations: 215.9 kB / 365.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005282/0.1611, allocations: 0.6192 MB / 366.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006797/0.1618, allocations: 0.5277 MB / 367.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003636/0.1654, allocations: 3.724 MB / 370.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1655, allocations: 4 kB / 370.8 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.1655, allocations: 0 / 370.8 MB, free: 7.988 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001684/0.1656, allocations: 4 kB / 370.8 MB, free: 7.984 MB / 302.1 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.005776/0.1714, allocations: 2.546 MB / 373.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.1715, allocations: 8.031 kB / 373.4 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007086/0.1722, allocations: 332.7 kB / 373.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008569/0.1731, allocations: 308.7 kB / 374 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002833/0.1759, allocations: 1.542 MB / 375.5 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.1761, allocations: 164.4 kB / 375.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003357/0.1765, allocations: 215.9 kB / 375.9 MB, free: 2.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005684/0.1821, allocations: 3.151 MB / 379 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.878e-05/0.1822, allocations: 3.938 kB / 379.1 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002121/0.1824, allocations: 92 kB / 379.1 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/0.1826, allocations: 108.4 kB / 379.2 MB, free: 15.31 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004788/0.1874, allocations: 2.727 MB / 382 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01544/0.2028, allocations: 8.943 MB / 390.9 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003504/0.2064, allocations: 3.383 MB / 394.3 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002762/0.2067, allocations: 122.4 kB / 394.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.2067, allocations: 55.88 kB / 394.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=128): time 3.106e-06/0.2068, allocations: 0 / 394.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=132): time 0.01076/0.2175, allocations: 5.819 MB / 400.3 MB, free: 9.594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.2176, allocations: 68.72 kB / 400.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002167/0.2198, allocations: 1.482 MB / 401.8 MB, free: 8.012 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001493/0.22, allocations: 45.7 kB / 401.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007407/0.2207, allocations: 0.9409 MB / 402.8 MB, free: 7.008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004245/0.2211, allocations: 449.5 kB / 403.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.346e-05/0.2212, allocations: 24 kB / 403.3 MB, free: 6.539 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.2214, allocations: 353.9 kB / 403.6 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.2225, allocations: 0.7052 MB / 404.3 MB, free: 5.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.2237, allocations: 0.8707 MB / 405.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.2248, allocations: 0.8262 MB / 406 MB, free: 3.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2249, allocations: 7.875 kB / 406 MB, free: 3.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003628/0.2285, allocations: 2.333 MB / 408.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.2285, allocations: 8 kB / 408.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.2285, allocations: 4 kB / 408.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002667/0.2312, allocations: 0.8193 MB / 409.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008095/0.232, allocations: 211.8 kB / 409.4 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01201/0.2441, allocations: 10.73 MB / 420.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.2454, allocations: 59.91 kB / 420.2 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001476/0.2456, allocations: 40 kB / 420.2 MB, free: 4.957 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 100 * 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.002019/0.2476, allocations: 0.8175 MB / 421.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006148/0.2483, allocations: 158.1 kB / 421.2 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00417/0.2524, allocations: 2.3 MB / 423.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/0.2525, allocations: 12 kB / 423.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.2525, allocations: 4 kB / 423.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.2525, allocations: 3.984 kB / 423.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2056/0.4581, allocations: 4.771 MB / 428.3 MB, free: 62.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.4582, allocations: 1 kB / 428.3 MB, free: 62.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006679/0.4588, allocations: 169.3 kB / 428.5 MB, free: 62.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002749/0.4616, allocations: 0.7984 MB / 429.3 MB, free: 62.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.957e-05/0.4617, allocations: 30.31 kB / 429.3 MB, free: 62.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01174/0.4735, allocations: 10.62 MB / 439.9 MB, free: 57.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.4735, allocations: 5.891 kB / 439.9 MB, free: 57.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005067/0.4786, allocations: 3.287 MB / 443.2 MB, free: 56.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.4797, allocations: 407.2 kB / 443.6 MB, free: 56.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001984/0.4799, allocations: 25.94 kB / 443.6 MB, free: 56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007345/0.4806, allocations: 76.53 kB / 443.7 MB, free: 55.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002744/0.4809, allocations: 118.6 kB / 443.8 MB, free: 55.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.128e-05/0.481, allocations: 39.56 kB / 443.9 MB, free: 55.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001341/0.4823, allocations: 1.041 MB / 444.9 MB, free: 55.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4823, allocations: 0 / 444.9 MB, free: 55.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00164/0.484, allocations: 0.5148 MB / 445.4 MB, free: 55.48 MB / 350.1 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 () * Number of clocked 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.004603/0.4886, allocations: 4.053 MB / 449.5 MB, free: 53.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003104/0.4917, allocations: 2.418 MB / 451.9 MB, free: 51.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.4917, allocations: 3.969 kB / 451.9 MB, free: 51.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001917/0.4937, allocations: 1.626 MB / 453.5 MB, free: 50.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001784/0.4955, allocations: 477.8 kB / 454 MB, free: 49.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02164/0.5171, allocations: 15.87 MB / 469.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.5186, allocations: 2.079 MB / 471.9 MB, free: 31.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00109/0.5197, allocations: 315.3 kB / 472.2 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007971/0.5205, allocations: 0.7805 MB / 473 MB, free: 30.54 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5205, allocations: 0 / 473 MB, free: 30.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07011/0.5906, allocations: 46.21 MB / 0.5071 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003936/0.5911, allocations: 272.8 kB / 0.5073 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.888/3.479, allocations: 7.938 kB / 0.5073 GB, free: 0.4961 MB / 366.1 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