Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.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.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",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.00107/0.00107, allocations: 95.72 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.0009506/0.0009508, allocations: 182.2 kB / 17.19 MB, free: 5.91 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.504/1.504, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004078/0.000408, allocations: 7.469 kB / 300.8 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1437, allocations: 50.43 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004737/0.1485, allocations: 3.422 MB / 354.6 MB, free: 8.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002595/0.1512, allocations: 0.9237 MB / 355.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006966/0.1519, allocations: 15.94 kB / 355.6 MB, free: 7.285 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003198/0.1522, allocations: 63.5 kB / 355.7 MB, free: 7.223 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008894/0.1531, allocations: 227.3 kB / 355.9 MB, free: 7 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.1535, allocations: 111.9 kB / 356 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007244/0.1543, allocations: 499.9 kB / 356.5 MB, free: 6.402 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003312/0.1546, allocations: 170.5 kB / 356.6 MB, free: 6.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003181/0.1549, allocations: 239.1 kB / 356.9 MB, free: 5.996 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003716/0.1553, allocations: 278.8 kB / 357.1 MB, free: 5.723 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.618e-05/0.1554, allocations: 36 kB / 357.2 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.491e-05/0.1555, allocations: 32 kB / 357.2 MB, free: 5.656 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.1556, allocations: 119.6 kB / 357.3 MB, free: 5.539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.1558, allocations: 133.4 kB / 357.5 MB, free: 5.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000465/0.1562, allocations: 0.4985 MB / 358 MB, free: 4.902 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1562, allocations: 0 / 358 MB, free: 4.902 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1562, allocations: 0 / 358 MB, free: 4.902 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1563, allocations: 0 / 358 MB, free: 4.902 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00144/0.1577, allocations: 0.8261 MB / 358.8 MB, free: 4.023 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1578, allocations: 8.031 kB / 358.8 MB, free: 4.016 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001556/0.1579, allocations: 111.7 kB / 358.9 MB, free: 3.898 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.158, allocations: 75.11 kB / 359 MB, free: 3.824 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005047/0.1586, allocations: 368.9 kB / 359.3 MB, free: 3.422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.589e-05/0.1586, allocations: 41.31 kB / 359.4 MB, free: 3.383 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.043e-05/0.1587, allocations: 55.94 kB / 359.4 MB, free: 3.328 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009903/0.1597, allocations: 0.5616 MB / 360 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.1597, allocations: 7.875 kB / 360 MB, free: 2.73 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.595e-05/0.1598, allocations: 24 kB / 360 MB, free: 2.707 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.1598, allocations: 19.94 kB / 360 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008898/0.1607, allocations: 477 kB / 360.5 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003049/0.1638, allocations: 2.106 MB / 362.6 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009217/0.1647, allocations: 0.6569 MB / 363.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.481e-05/0.1648, allocations: 4.562 kB / 363.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.1648, allocations: 39.12 kB / 363.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 2.274e-06/0.1648, allocations: 0 / 363.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.004556/0.1694, allocations: 2.057 MB / 365.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.1694, allocations: 59.95 kB / 365.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004246/0.1699, allocations: 357.6 kB / 365.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.62e-05/0.1699, allocations: 37.7 kB / 365.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.1701, allocations: 237.1 kB / 366 MB, free: 12.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001616/0.1703, allocations: 205 kB / 366.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.304e-05/0.1703, allocations: 12 kB / 366.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1705, allocations: 362.7 kB / 366.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.1709, allocations: 169 kB / 366.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003667/0.1712, allocations: 223.7 kB / 367 MB, free: 11.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003771/0.1716, allocations: 174.2 kB / 367.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.1716, allocations: 4 kB / 367.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001231/0.1729, allocations: 0.6656 MB / 367.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.1729, allocations: 11.95 kB / 367.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1729, allocations: 4.031 kB / 367.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007435/0.1737, allocations: 251.2 kB / 368.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003063/0.174, allocations: 71.84 kB / 368.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006491/0.1805, allocations: 6.832 MB / 375 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.1809, allocations: 20.09 kB / 375 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.64e-05/0.1809, allocations: 16.09 kB / 375 MB, free: 2.832 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002472/0.1812, allocations: 173.8 kB / 375.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.944e-05/0.1813, allocations: 51.34 kB / 375.3 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.1814, allocations: 68.95 kB / 375.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1814, allocations: 7.938 kB / 375.3 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/0.1814, allocations: 11.94 kB / 375.3 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.1814, allocations: 4 kB / 375.3 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002115/0.1835, allocations: 1.36 MB / 376.7 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1835, allocations: 0 / 376.7 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002799/0.1838, allocations: 55.97 kB / 376.8 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006453/0.1845, allocations: 259.3 kB / 377 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.295e-05/0.1845, allocations: 12 kB / 377 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006837/0.1914, allocations: 6.841 MB / 383.9 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.1914, allocations: 4.031 kB / 383.9 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.1933, allocations: 1.044 MB / 384.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.1935, allocations: 152.5 kB / 385.1 MB, free: 8.125 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.761e-05/0.1936, allocations: 12 kB / 385.1 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.1938, allocations: 27.94 kB / 385.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.194, allocations: 48.48 kB / 385.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.194, allocations: 16 kB / 385.2 MB, free: 8.023 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002968/0.1943, allocations: 259.2 kB / 385.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1944, allocations: 0 / 385.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009541/0.1953, allocations: 176 kB / 385.6 MB, free: 7.598 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002285/0.1976, allocations: 1.601 MB / 387.2 MB, free: 5.957 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.1996, allocations: 1.045 MB / 388.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1996, allocations: 0 / 388.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001315/0.2009, allocations: 0.8414 MB / 389.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006917/0.2016, allocations: 81.81 kB / 389.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006275/0.2079, allocations: 3.567 MB / 392.7 MB, free: 264 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005604/0.2085, allocations: 0.8987 MB / 393.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002276/0.2088, allocations: 56.53 kB / 393.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/0.209, allocations: 171.3 kB / 393.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of SimCode: time 1.092e-06/0.209, allocations: 0 / 393.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02979/0.2388, allocations: 12.15 MB / 406 MB, free: 3.18 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/0.2391, allocations: 210.1 kB / 406.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.188/2.428, allocations: 0 / 406.2 MB, free: 2.938 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat