Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_3_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/Complex 3.2.3+maint.om/package.mo): time 0.001174/0.001174, allocations: 173 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008469/0.0008471, allocations: 86.7 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.303e-05/2.305e-05, allocations: 0 / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07781/0.07785, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.295/0.3729, allocations: 84.52 MB / 454.7 MB, free: 8.801 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.3732, allocations: 97.17 kB / 454.7 MB, free: 8.742 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05071/0.424, allocations: 20.44 MB / 475.2 MB, free: 5.598 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.424, allocations: 0 / 475.2 MB, free: 5.598 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.392e-05/0.4241, allocations: 35.94 kB / 475.2 MB, free: 5.562 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002216/0.4263, allocations: 1.288 MB / 476.5 MB, free: 4.223 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.4264, allocations: 8.031 kB / 476.5 MB, free: 4.215 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002147/0.4266, allocations: 160.1 kB / 476.7 MB, free: 4.051 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002786/0.4269, allocations: 134.4 kB / 476.8 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003896/0.4308, allocations: 1.659 MB / 478.5 MB, free: 2.215 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.912e-05/0.4309, allocations: 74 kB / 478.5 MB, free: 2.145 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.431, allocations: 92 kB / 478.6 MB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002188/0.4332, allocations: 1.4 MB / 480 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.4333, allocations: 0 / 480 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.896e-05/0.4334, allocations: 40 kB / 480.1 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.487e-05/0.4334, allocations: 42 kB / 480.1 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.4352, allocations: 1.183 MB / 481.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006157/0.4414, allocations: 4.332 MB / 485.6 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/0.4433, allocations: 1.945 MB / 487.6 MB, free: 8.723 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001118/0.4444, allocations: 0.7317 MB / 488.3 MB, free: 7.992 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.94e-05/0.4445, allocations: 12.72 kB / 488.3 MB, free: 7.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008579/0.4454, allocations: 0.5723 MB / 488.9 MB, free: 7.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=75): time 3.697e-06/0.4454, allocations: 3.938 kB / 488.9 MB, free: 7.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=75): time 0.002032/0.4474, allocations: 1.222 MB / 490.1 MB, free: 6.152 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.912e-05/0.4475, allocations: 111.6 kB / 490.2 MB, free: 6.016 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009605/0.4485, allocations: 0.7302 MB / 490.9 MB, free: 5.281 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.685e-05/0.4486, allocations: 45.69 kB / 491 MB, free: 5.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003853/0.449, allocations: 479.8 kB / 491.5 MB, free: 4.754 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/0.4492, allocations: 244.5 kB / 491.7 MB, free: 4.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/0.4492, allocations: 16 kB / 491.7 MB, free: 4.496 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.4494, allocations: 394.7 kB / 492.1 MB, free: 4.102 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005169/0.4499, allocations: 373.4 kB / 492.5 MB, free: 3.738 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006738/0.4506, allocations: 0.5191 MB / 493 MB, free: 3.164 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006196/0.4512, allocations: 415 kB / 493.4 MB, free: 2.758 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.4512, allocations: 0 / 493.4 MB, free: 2.758 MB / 362.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001927/0.4532, allocations: 1.248 MB / 494.6 MB, free: 1.504 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.4532, allocations: 11.95 kB / 494.7 MB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.4533, allocations: 7.984 kB / 494.7 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/0.4544, allocations: 468.7 kB / 495.1 MB, free: 1.023 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004252/0.4548, allocations: 91.83 kB / 495.2 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006769/0.4616, allocations: 5.088 MB / 0.4886 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007287/0.4624, allocations: 95.47 kB / 0.4887 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.647e-05/0.4624, allocations: 31.94 kB / 0.4887 GB, free: 11.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * 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.0002382/0.4627, allocations: 146.7 kB / 0.4888 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.4628, allocations: 82.97 kB / 0.4889 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003193/0.4631, allocations: 116.6 kB / 0.489 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.4632, allocations: 8 kB / 0.489 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.4632, allocations: 0 / 0.489 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.4632, allocations: 7.922 kB / 0.489 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003979/0.4672, allocations: 2.592 MB / 0.4916 GB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.4672, allocations: 0 / 0.4916 GB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.4675, allocations: 63.89 kB / 0.4916 GB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009402/0.4685, allocations: 452.7 kB / 0.4921 GB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.487e-05/0.4685, allocations: 19.95 kB / 0.4921 GB, free: 8.031 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006178/0.4747, allocations: 5.036 MB / 0.497 GB, free: 2.855 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4747, allocations: 4 kB / 0.497 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.4773, allocations: 1.869 MB / 0.4988 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004744/0.4778, allocations: 271.8 kB / 0.4991 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.4779, allocations: 16 kB / 0.4991 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.4784, allocations: 43.95 kB / 0.4991 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/0.4786, allocations: 80.73 kB / 0.4992 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.788e-05/0.4786, allocations: 20 kB / 0.4992 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000816/0.4794, allocations: 0.5811 MB / 0.4998 GB, free: 15.94 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4795, allocations: 4 kB / 0.4998 GB, free: 15.94 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001015/0.4805, allocations: 343 kB / 0.5001 GB, free: 15.6 MB / 394.7 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,rootMeanSquareVoltage.mean.y,meanCurrent.y) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * 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.002866/0.4834, allocations: 2.438 MB / 0.5025 GB, free: 13.13 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.4854, allocations: 1.228 MB / 0.5037 GB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4854, allocations: 0 / 0.5037 GB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.4865, allocations: 0.785 MB / 0.5045 GB, free: 11.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.4875, allocations: 259.5 kB / 0.5047 GB, free: 10.84 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003842/0.4914, allocations: 2.132 MB / 0.5068 GB, free: 8.66 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.4924, allocations: 1.345 MB / 0.5081 GB, free: 7.285 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003772/0.4928, allocations: 147.2 kB / 0.5083 GB, free: 7.137 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004876/0.4933, allocations: 371.3 kB / 0.5086 GB, free: 6.773 MB / 394.7 MB Notification: Performance of SimCode: time 7.22e-07/0.4933, allocations: 0 / 0.5086 GB, free: 6.773 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2523/0.7456, allocations: 26.42 MB / 0.5344 GB, free: 122.9 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/0.7458, allocations: 220.6 kB / 0.5346 GB, free: 122.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.536/3.282, allocations: 0 / 0.5346 GB, free: 122.6 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat