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.001201/0.001202, allocations: 93.91 kB / 16.31 MB, free: 6.461 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.001456/0.001455, allocations: 173 kB / 17.19 MB, free: 6.348 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.401/1.401, allocations: 223.2 MB / 241.1 MB, free: 388 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002387/0.0002387, allocations: 8.625 kB / 300.8 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1043, allocations: 50.41 MB / 351.2 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse): time 0.004564/0.1089, allocations: 3.851 MB / 355.1 MB, free: 48 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002434/0.1114, allocations: 1.282 MB / 356.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000322/0.1118, allocations: 19.88 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004878/0.1122, allocations: 175.1 kB / 356.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000643/0.1129, allocations: 307.1 kB / 356.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003156/0.1132, allocations: 131.7 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001092/0.1143, allocations: 0.9199 MB / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008847/0.1152, allocations: 0.7058 MB / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005821/0.1158, allocations: 446.4 kB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007032/0.1165, allocations: 0.5174 MB / 359.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.1167, allocations: 64 kB / 359.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.1168, allocations: 64 kB / 359.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003107/0.1171, allocations: 307 kB / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002744/0.1174, allocations: 269.1 kB / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001461/0.1189, allocations: 1.648 MB / 361.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1189, allocations: 0 / 361.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1189, allocations: 0 / 361.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.586e-05/0.1189, allocations: 0 / 361.9 MB, free: 9.188 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.002693/0.1216, allocations: 1.429 MB / 363.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.1217, allocations: 16.02 kB / 363.4 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001947/0.1219, allocations: 156.2 kB / 363.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002069/0.1221, allocations: 146.3 kB / 363.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.1235, allocations: 0.8831 MB / 364.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.925e-05/0.1236, allocations: 74 kB / 364.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.1238, allocations: 96 kB / 364.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002251/0.126, allocations: 1.431 MB / 366.1 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/0.1261, allocations: 4 kB / 366.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.958e-05/0.1262, allocations: 40 kB / 366.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.642e-05/0.1262, allocations: 45.94 kB / 366.2 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002397/0.1286, allocations: 1.304 MB / 367.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2051/0.3338, allocations: 4.354 MB / 371.9 MB, free: 21.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002063/0.3359, allocations: 1.969 MB / 373.8 MB, free: 20.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.713e-05/0.336, allocations: 14.81 kB / 373.9 MB, free: 20.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009822/0.337, allocations: 0.5966 MB / 374.5 MB, free: 20.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=75): time 4.248e-06/0.337, allocations: 0 / 374.5 MB, free: 20.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=75): time 0.008094/0.3451, allocations: 2.755 MB / 377.2 MB, free: 20.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.699e-05/0.3452, allocations: 117 kB / 377.3 MB, free: 20.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/0.3468, allocations: 0.8205 MB / 378.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.755e-05/0.3469, allocations: 42.42 kB / 378.2 MB, free: 20.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004576/0.3473, allocations: 488.8 kB / 378.7 MB, free: 19.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000235/0.3476, allocations: 242.1 kB / 378.9 MB, free: 19.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.622e-05/0.3476, allocations: 11.41 kB / 378.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3478, allocations: 395.1 kB / 379.3 MB, free: 19.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006694/0.3484, allocations: 398 kB / 379.7 MB, free: 19.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007946/0.3493, allocations: 0.5468 MB / 380.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006959/0.35, allocations: 439.1 kB / 380.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.35, allocations: 5.984 kB / 380.7 MB, free: 18.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002156/0.3521, allocations: 1.326 MB / 382 MB, free: 18.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3522, allocations: 5.625 kB / 382 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.3522, allocations: 4.375 kB / 382 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.3533, allocations: 473 kB / 382.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003856/0.3537, allocations: 99.09 kB / 382.6 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006521/0.3603, allocations: 5.293 MB / 387.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005593/0.3608, allocations: 85.83 kB / 387.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.3609, allocations: 27.38 kB / 388 MB, free: 14.75 MB / 302.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.0007053/0.3616, allocations: 461.9 kB / 388.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.3617, allocations: 86.09 kB / 388.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001999/0.3619, allocations: 124.2 kB / 388.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.362, allocations: 7.656 kB / 388.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.362, allocations: 0 / 388.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.362, allocations: 3.984 kB / 388.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003827/0.3658, allocations: 2.619 MB / 391.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.78e-06/0.3658, allocations: 3.938 kB / 391.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002914/0.3661, allocations: 71.05 kB / 391.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009468/0.3671, allocations: 457.7 kB / 391.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.212e-05/0.3672, allocations: 19.84 kB / 391.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005679/0.3728, allocations: 5.236 MB / 397 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3729, allocations: 3.938 kB / 397 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002582/0.3754, allocations: 1.927 MB / 399 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000421/0.3759, allocations: 271.9 kB / 399.2 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.376, allocations: 12 kB / 399.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003954/0.3764, allocations: 55.89 kB / 399.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.3766, allocations: 72.55 kB / 399.4 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.584e-05/0.3766, allocations: 17.62 kB / 399.4 MB, free: 6.922 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000736/0.3774, allocations: 0.5927 MB / 400 MB, free: 6.336 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3774, allocations: 0 / 400 MB, free: 6.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001174/0.3786, allocations: 335.1 kB / 400.3 MB, free: 6.008 MB / 302.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.002504/0.3811, allocations: 2.499 MB / 402.8 MB, free: 3.484 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001939/0.383, allocations: 1.277 MB / 404.1 MB, free: 2.191 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3831, allocations: 0 / 404.1 MB, free: 2.191 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.3841, allocations: 0.8317 MB / 404.9 MB, free: 1.355 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009389/0.3851, allocations: 254.5 kB / 405.2 MB, free: 1.113 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/0.3911, allocations: 5.82 MB / 411 MB, free: 11.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.3922, allocations: 1.341 MB / 412.3 MB, free: 9.809 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004889/0.3927, allocations: 151.3 kB / 412.5 MB, free: 9.656 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005151/0.3933, allocations: 375.3 kB / 412.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of SimCode: time 1.654e-06/0.3933, allocations: 0 / 412.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05058/0.4439, allocations: 26.08 MB / 438.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002674/0.4442, allocations: 263.3 kB / 439.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.325/2.769, allocations: 0 / 439.2 MB, free: 15.32 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