Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.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.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",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.001138/0.001138, allocations: 85.95 kB / 16.31 MB, free: 6.449 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.001367/0.001367, allocations: 183.2 kB / 17.21 MB, free: 6.316 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.49/1.49, allocations: 223.3 MB / 241.2 MB, free: 5.293 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002819/0.0002819, allocations: 8.422 kB / 300.9 MB, free: 5.59 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1192, allocations: 50.42 MB / 351.4 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse): time 0.004609/0.1238, allocations: 4.094 MB / 355.4 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002209/0.1261, allocations: 1.243 MB / 356.7 MB, free: 6.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00032/0.1264, allocations: 27.88 kB / 356.7 MB, free: 6.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005124/0.1269, allocations: 166.9 kB / 356.9 MB, free: 5.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006274/0.1276, allocations: 310.4 kB / 357.2 MB, free: 5.535 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.1279, allocations: 131.8 kB / 357.3 MB, free: 5.406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001353/0.1292, allocations: 1.584 MB / 358.9 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008225/0.1301, allocations: 0.7055 MB / 359.6 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005544/0.1306, allocations: 478.1 kB / 360.1 MB, free: 2.621 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006826/0.1313, allocations: 0.6108 MB / 360.7 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.1314, allocations: 64 kB / 360.7 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.1316, allocations: 64 kB / 360.8 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002768/0.1319, allocations: 318.9 kB / 361.1 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002332/0.1321, allocations: 277.1 kB / 361.4 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001315/0.1334, allocations: 1.644 MB / 363 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.1334, allocations: 0 / 363 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.948e-06/0.1334, allocations: 0 / 363 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.064e-05/0.1335, allocations: 7.938 kB / 363 MB, free: 15.64 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.002445/0.1359, allocations: 1.424 MB / 364.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.136, allocations: 8.031 kB / 364.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001993/0.1362, allocations: 160.2 kB / 364.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002085/0.1364, allocations: 146.3 kB / 364.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.1376, allocations: 0.8831 MB / 365.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.482e-05/0.1377, allocations: 74 kB / 365.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.1378, allocations: 95.98 kB / 365.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002273/0.1401, allocations: 1.443 MB / 367.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/0.1402, allocations: 4 kB / 367.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.591e-05/0.1403, allocations: 40 kB / 367.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.783e-05/0.1403, allocations: 45.94 kB / 367.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002079/0.1424, allocations: 1.304 MB / 368.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005966/0.1484, allocations: 4.367 MB / 373 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002079/0.1505, allocations: 1.959 MB / 375 MB, free: 3.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009553/0.1515, allocations: 0.6261 MB / 375.6 MB, free: 2.621 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.162e-05/0.1515, allocations: 8.656 kB / 375.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009355/0.1525, allocations: 0.6014 MB / 376.2 MB, free: 1.992 MB / 302.1 MB Notification: Performance of pre-optimization done (n=75): time 2.375e-06/0.1525, allocations: 0 / 376.2 MB, free: 1.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=75): time 0.006455/0.1589, allocations: 2.723 MB / 378.9 MB, free: 15.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.924e-05/0.159, allocations: 115.4 kB / 379 MB, free: 15.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.1602, allocations: 0.8207 MB / 379.9 MB, free: 14.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.05e-05/0.1602, allocations: 41.7 kB / 379.9 MB, free: 14.22 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004154/0.1607, allocations: 487.7 kB / 380.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002074/0.1609, allocations: 244.5 kB / 380.6 MB, free: 13.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.87e-05/0.1609, allocations: 12 kB / 380.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.1611, allocations: 394.7 kB / 381 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006527/0.1618, allocations: 405.7 kB / 381.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006961/0.1625, allocations: 0.5455 MB / 382 MB, free: 12.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006575/0.1632, allocations: 434 kB / 382.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.1632, allocations: 4 kB / 382.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001997/0.1652, allocations: 1.319 MB / 383.7 MB, free: 10.33 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.1652, allocations: 10.66 kB / 383.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.1652, allocations: 4 kB / 383.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/0.1663, allocations: 480.3 kB / 384.2 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000359/0.1667, allocations: 95.83 kB / 384.3 MB, free: 9.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006704/0.1734, allocations: 5.126 MB / 389.4 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006361/0.174, allocations: 87.39 kB / 389.5 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.613e-05/0.1741, allocations: 24 kB / 389.5 MB, free: 4.379 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 30} Notification: Performance of prepare postOptimizeDAE: time 0.001062/0.1752, allocations: 463.2 kB / 390 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.1753, allocations: 86.97 kB / 390.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000251/0.1756, allocations: 112.6 kB / 390.2 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.1756, allocations: 11.98 kB / 390.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.1756, allocations: 3.953 kB / 390.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.1756, allocations: 3.984 kB / 390.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003999/0.1796, allocations: 2.623 MB / 392.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.1796, allocations: 0 / 392.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002848/0.1799, allocations: 63.91 kB / 392.9 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009341/0.1809, allocations: 460.6 kB / 393.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.726e-05/0.1809, allocations: 16 kB / 393.3 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006365/0.1873, allocations: 5.071 MB / 398.4 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1873, allocations: 4 kB / 398.4 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.1902, allocations: 1.919 MB / 400.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004925/0.1907, allocations: 271.8 kB / 400.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.1908, allocations: 16 kB / 400.6 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003794/0.1912, allocations: 51.88 kB / 400.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.1914, allocations: 76.55 kB / 400.7 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-05/0.1914, allocations: 19.95 kB / 400.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007902/0.1922, allocations: 0.5849 MB / 401.3 MB, free: 8.289 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1922, allocations: 7.938 kB / 401.4 MB, free: 8.281 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001047/0.1933, allocations: 343 kB / 401.7 MB, free: 7.945 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.00305/0.1964, allocations: 2.495 MB / 404.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002194/0.1986, allocations: 1.283 MB / 405.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1986, allocations: 192 / 405.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.1998, allocations: 0.8278 MB / 406.3 MB, free: 3.289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.201, allocations: 259.1 kB / 406.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0117/0.2127, allocations: 7.13 MB / 413.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.2138, allocations: 1.326 MB / 415 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005522/0.2144, allocations: 143.3 kB / 415.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005113/0.2149, allocations: 383.3 kB / 415.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of SimCode: time 1.133e-06/0.2149, allocations: 0 / 415.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2551/0.47, allocations: 26.47 MB / 442 MB, free: 59.39 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.4703, allocations: 261.1 kB / 442.2 MB, free: 59.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.398/2.869, allocations: 4 kB / 442.2 MB, free: 59.04 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat