Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002171/0.002171, allocations: 178 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.103/2.103, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 83.97 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.043e-05/3.031e-05, allocations: 7.984 kB / 314.9 MB, free: 9.031 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.393/0.3931, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1361/0.5292, allocations: 83.87 MB / 446.3 MB, free: 2.316 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003523/0.5296, allocations: 91.94 kB / 446.4 MB, free: 2.227 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08769/0.6173, allocations: 20.23 MB / 466.6 MB, free: 13.93 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6174, allocations: 4 kB / 466.6 MB, free: 13.93 MB / 363.1 MB Notification: Performance of Transformations before backend: time 0.0001266/0.6175, allocations: 27.94 kB / 466.7 MB, free: 13.9 MB / 363.1 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.004312/0.6218, allocations: 1.288 MB / 468 MB, free: 12.57 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.6219, allocations: 8.031 kB / 468 MB, free: 12.56 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006165/0.6225, allocations: 138.4 kB / 468.1 MB, free: 12.42 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00675/0.6293, allocations: 1.659 MB / 469.8 MB, free: 10.72 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.841e-05/0.6294, allocations: 32 kB / 469.8 MB, free: 10.69 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000252/0.6297, allocations: 56 kB / 469.8 MB, free: 10.63 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003223/0.6329, allocations: 1.121 MB / 471 MB, free: 9.512 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003256/0.6362, allocations: 1.255 MB / 472.2 MB, free: 8.199 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.149e-05/0.6363, allocations: 0 / 472.2 MB, free: 8.199 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.6365, allocations: 3.984 kB / 472.2 MB, free: 8.195 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-05/0.6366, allocations: 45.98 kB / 472.3 MB, free: 8.148 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01051/0.6471, allocations: 4.149 MB / 476.4 MB, free: 3.914 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002846/0.65, allocations: 1.905 MB / 478.3 MB, free: 1.793 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.6514, allocations: 0.6125 MB / 478.9 MB, free: 1.18 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.923e-05/0.6515, allocations: 8.781 kB / 478.9 MB, free: 1.172 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001276/0.6527, allocations: 0.5473 MB / 479.5 MB, free: 0.6016 MB / 363.1 MB Notification: Performance of pre-optimization done (n=75): time 3.657e-06/0.6528, allocations: 8 kB / 479.5 MB, free: 0.5938 MB / 363.1 MB Notification: Performance of matching and sorting (n=75): time 0.00318/0.656, allocations: 1.156 MB / 480.7 MB, free: 15.42 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.327e-05/0.6561, allocations: 111.6 kB / 480.8 MB, free: 15.29 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.6576, allocations: 0.6599 MB / 481.4 MB, free: 14.62 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001608/0.6578, allocations: 33.62 kB / 481.5 MB, free: 14.58 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005514/0.6583, allocations: 494.2 kB / 481.9 MB, free: 14.09 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003368/0.6587, allocations: 232.5 kB / 482.2 MB, free: 13.87 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.078e-05/0.6587, allocations: 0 / 482.2 MB, free: 13.87 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.6589, allocations: 338.8 kB / 482.5 MB, free: 13.53 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008321/0.6597, allocations: 357.4 kB / 482.9 MB, free: 13.18 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009778/0.6607, allocations: 0.4942 MB / 483.3 MB, free: 12.63 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000928/0.6617, allocations: 409.8 kB / 483.7 MB, free: 12.23 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.6617, allocations: 0 / 483.7 MB, free: 12.23 MB / 379.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002752/0.6645, allocations: 1.12 MB / 484.9 MB, free: 11.1 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.6645, allocations: 8 kB / 484.9 MB, free: 11.09 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.6646, allocations: 4.438 kB / 484.9 MB, free: 11.09 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001787/0.6664, allocations: 460.3 kB / 485.3 MB, free: 10.64 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007284/0.6671, allocations: 99.81 kB / 485.4 MB, free: 10.54 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.6776, allocations: 4.962 MB / 490.4 MB, free: 5.457 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00096/0.6786, allocations: 67.48 kB / 490.5 MB, free: 5.391 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.71e-05/0.6787, allocations: 28 kB / 490.5 MB, free: 5.363 MB / 379.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: 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.0002589/0.679, allocations: 134.5 kB / 490.6 MB, free: 5.227 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003061/0.682, allocations: 1.163 MB / 491.8 MB, free: 4.051 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002793/0.6824, allocations: 83.06 kB / 491.9 MB, free: 3.969 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003658/0.6827, allocations: 100.5 kB / 492 MB, free: 3.863 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.6828, allocations: 15.89 kB / 492 MB, free: 3.848 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.6828, allocations: 0 / 492 MB, free: 3.848 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.6828, allocations: 3.984 kB / 492 MB, free: 3.844 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00611/0.6889, allocations: 2.374 MB / 494.3 MB, free: 1.418 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.689, allocations: 0 / 494.3 MB, free: 1.418 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005895/0.6896, allocations: 71.89 kB / 494.4 MB, free: 1.348 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001725/0.6913, allocations: 452.8 kB / 494.9 MB, free: 0.9023 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-05/0.6914, allocations: 0 / 494.9 MB, free: 0.9023 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/0.7021, allocations: 4.962 MB / 499.8 MB, free: 11.82 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.7022, allocations: 0 / 499.8 MB, free: 11.82 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004248/0.7064, allocations: 1.783 MB / 0.4898 GB, free: 10.02 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009149/0.7074, allocations: 268 kB / 0.4901 GB, free: 9.738 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002008/0.7076, allocations: 0 / 0.4901 GB, free: 9.738 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000863/0.7085, allocations: 35.95 kB / 0.4901 GB, free: 9.703 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003548/0.7089, allocations: 76.67 kB / 0.4902 GB, free: 9.629 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-05/0.709, allocations: 19.98 kB / 0.4902 GB, free: 9.609 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001161/0.7101, allocations: 0.5147 MB / 0.4907 GB, free: 9.098 MB / 395.1 MB Notification: Performance of sort global known variables: time 8.42e-07/0.7102, allocations: 0 / 0.4907 GB, free: 9.098 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001745/0.7119, allocations: 314.9 kB / 0.491 GB, free: 8.789 MB / 395.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,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.004784/0.7168, allocations: 2.351 MB / 0.4933 GB, free: 6.402 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003071/0.7199, allocations: 1.169 MB / 0.4945 GB, free: 5.223 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/0.7199, allocations: 4.875 kB / 0.4945 GB, free: 5.219 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002019/0.722, allocations: 0.7582 MB / 0.4952 GB, free: 4.449 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.7239, allocations: 220.3 kB / 0.4954 GB, free: 4.242 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007073/0.731, allocations: 2.044 MB / 0.4974 GB, free: 2.152 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/0.7324, allocations: 1.319 MB / 0.4987 GB, free: 0.8047 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009139/0.7334, allocations: 375.3 kB / 0.4991 GB, free: 452 kB / 395.1 MB Notification: Performance of SimCode: time 1.432e-06/0.7334, allocations: 0 / 0.4991 GB, free: 452 kB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.27/4.003, allocations: 25.24 MB / 0.5237 GB, free: 110.5 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat