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.000745/0.0007452, allocations: 94.06 kB / 16.31 MB, free: 5.586 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.0008227/0.0008228, allocations: 181.5 kB / 17.2 MB, free: 5.504 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.474/1.474, allocations: 223.2 MB / 241.2 MB, free: 5.293 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002676/0.0002676, allocations: 6.406 kB / 300.9 MB, free: 5.59 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1078, allocations: 50.42 MB / 351.3 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse): time 0.007059/0.1149, allocations: 6.025 MB / 357.4 MB, free: 5.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004773/0.1198, allocations: 2.139 MB / 359.5 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001058/0.1209, allocations: 43.81 kB / 359.5 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001063/0.1219, allocations: 353.8 kB / 359.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001895/0.1238, allocations: 0.5867 MB / 360.5 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005425/0.1244, allocations: 159.8 kB / 360.6 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003781/0.1282, allocations: 2.934 MB / 363.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0024/0.1306, allocations: 1.697 MB / 365.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002079/0.1327, allocations: 0.9496 MB / 366.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001998/0.1347, allocations: 1.226 MB / 367.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002746/0.135, allocations: 148 kB / 367.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006162/0.1357, allocations: 207.9 kB / 367.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006018/0.1363, allocations: 0.6502 MB / 368.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006687/0.1369, allocations: 0.5316 MB / 369 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003667/0.1406, allocations: 3.744 MB / 372.7 MB, free: 5.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1406, allocations: 4 kB / 372.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.1407, allocations: 0 / 372.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001186/0.1408, allocations: 0 / 372.7 MB, free: 5.883 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.005208/0.146, allocations: 2.55 MB / 375.3 MB, free: 3.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.1461, allocations: 8.031 kB / 375.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006073/0.1467, allocations: 324.7 kB / 375.6 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000766/0.1474, allocations: 316.7 kB / 375.9 MB, free: 2.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002614/0.1501, allocations: 1.542 MB / 377.4 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.1502, allocations: 164.4 kB / 377.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003108/0.1505, allocations: 215.9 kB / 377.8 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005282/0.1558, allocations: 3.17 MB / 381 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.251e-05/0.1559, allocations: 0 / 381 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002014/0.1561, allocations: 91.98 kB / 381.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000114/0.1562, allocations: 112.4 kB / 381.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004805/0.161, allocations: 2.727 MB / 383.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01588/0.1769, allocations: 8.939 MB / 392.8 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003777/0.1807, allocations: 3.38 MB / 396.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00203/0.1828, allocations: 1.354 MB / 397.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002539/0.1831, allocations: 126.4 kB / 397.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.733e-05/0.1831, allocations: 47.88 kB / 397.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=128): time 3.076e-06/0.1831, allocations: 0 / 397.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=132): time 0.01063/0.1938, allocations: 5.782 MB / 403.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.1939, allocations: 64.72 kB / 403.6 MB, free: 6.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002209/0.1961, allocations: 1.482 MB / 405.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.1962, allocations: 45.7 kB / 405.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007278/0.197, allocations: 0.9409 MB / 406.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004098/0.1974, allocations: 441.5 kB / 406.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.626e-05/0.1974, allocations: 28 kB / 406.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1976, allocations: 353.9 kB / 406.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.1987, allocations: 0.6974 MB / 407.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.1998, allocations: 0.8629 MB / 408.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.2009, allocations: 0.8105 MB / 409.2 MB, free: 352 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.201, allocations: 0 / 409.2 MB, free: 352 kB / 334.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003668/0.2046, allocations: 2.314 MB / 411.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.2047, allocations: 6.031 kB / 411.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.2047, allocations: 4 kB / 411.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002552/0.2072, allocations: 0.8233 MB / 412.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007724/0.208, allocations: 207.7 kB / 412.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.2195, allocations: 10.52 MB / 423.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.2207, allocations: 51.97 kB / 423.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.2208, allocations: 39.98 kB / 423.2 MB, free: 1.805 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.001568/0.2224, allocations: 0.8214 MB / 424 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003814/0.2228, allocations: 158.1 kB / 424.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2362/0.4591, allocations: 2.271 MB / 426.5 MB, free: 62.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.211e-05/0.4591, allocations: 18.88 kB / 426.5 MB, free: 62.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.4591, allocations: 4.125 kB / 426.5 MB, free: 62.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.4592, allocations: 10.44 kB / 426.5 MB, free: 62.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009458/0.4686, allocations: 4.754 MB / 431.2 MB, free: 62.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.759e-06/0.4687, allocations: 1.156 kB / 431.2 MB, free: 62.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008191/0.4695, allocations: 164 kB / 431.4 MB, free: 62.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002843/0.4724, allocations: 0.8054 MB / 432.2 MB, free: 62.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001278/0.4725, allocations: 32.19 kB / 432.2 MB, free: 62.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/0.4841, allocations: 10.39 MB / 442.6 MB, free: 56.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.4841, allocations: 5.25 kB / 442.6 MB, free: 56.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004852/0.4889, allocations: 3.23 MB / 445.9 MB, free: 55.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.49, allocations: 413 kB / 446.3 MB, free: 54.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/0.4903, allocations: 29.09 kB / 446.3 MB, free: 54.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007515/0.4911, allocations: 74.47 kB / 446.4 MB, free: 54.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003217/0.4914, allocations: 113.5 kB / 446.5 MB, free: 54.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.402e-05/0.4915, allocations: 31.81 kB / 446.5 MB, free: 54.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00156/0.4931, allocations: 1.045 MB / 447.6 MB, free: 54.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4931, allocations: 0 / 447.6 MB, free: 54.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002102/0.4952, allocations: 0.5143 MB / 448.1 MB, free: 54.21 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (79): * Single equations (assignments): 75 * 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.004629/0.4998, allocations: 3.87 MB / 451.9 MB, free: 51.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003193/0.503, allocations: 2.403 MB / 454.3 MB, free: 49.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.5031, allocations: 0 / 454.3 MB, free: 49.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001974/0.5051, allocations: 1.636 MB / 456 MB, free: 47.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002306/0.5074, allocations: 0.4902 MB / 456.5 MB, free: 47.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02188/0.5293, allocations: 13.76 MB / 470.2 MB, free: 33.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001455/0.5308, allocations: 2.039 MB / 472.3 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00101/0.5318, allocations: 309.5 kB / 472.6 MB, free: 30.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008222/0.5327, allocations: 0.7688 MB / 473.3 MB, free: 30.21 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5327, allocations: 0 / 473.3 MB, free: 30.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1052/0.6379, allocations: 46.25 MB / 0.5074 GB, free: 496 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002296/0.6381, allocations: 273.3 kB / 0.5077 GB, free: 136 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.177/3.815, allocations: 3.516 kB / 0.5077 GB, free: 136 kB / 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