Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.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.RectifierCenterTapmPulse.DiodeCenterTapmPulse,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_DiodeCenterTapmPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_DiodeCenterTapmPulse",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.001521/0.001521, allocations: 183.2 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.073/2.073, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001179/0.001178, allocations: 88.36 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003997/0.0003998, allocations: 12 kB / 327.1 MB, free: 80 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3374, allocations: 47.55 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse): time 0.004548/0.342, allocations: 2.974 MB / 377.6 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002636/0.3447, allocations: 1.018 MB / 378.6 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003627/0.3451, allocations: 11.81 kB / 378.6 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002725/0.3454, allocations: 84.52 kB / 378.7 MB, free: 42.25 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:4970:20-4970:43:writable] Warning: 'each' used when modifying non-array element diode. Notification: Performance of NFTyping.typeBindings: time 0.000883/0.3463, allocations: 206.9 kB / 378.9 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003971/0.3467, allocations: 94.14 kB / 379 MB, free: 42.01 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:4970:20-4970:43:writable] Warning: 'each' used when modifying non-array element diode. Notification: Performance of NFFlatten.flatten: time 0.001079/0.3478, allocations: 0.5845 MB / 379.6 MB, free: 41.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007246/0.3486, allocations: 391.2 kB / 380 MB, free: 41.45 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:4970:20-4970:43:writable] Warning: 'each' used when modifying non-array element diode. Notification: Performance of NFEvalConstants.evaluate: time 0.0005632/0.3491, allocations: 285.9 kB / 380.3 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006528/0.3498, allocations: 357.6 kB / 380.6 MB, free: 41.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.35, allocations: 47.5 kB / 380.7 MB, free: 41.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.3501, allocations: 41.53 kB / 380.7 MB, free: 41.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000229/0.3504, allocations: 199.6 kB / 380.9 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002075/0.3506, allocations: 186.1 kB / 381.1 MB, free: 40.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001142/0.3518, allocations: 0.9857 MB / 382.1 MB, free: 40.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.3518, allocations: 0 / 382.1 MB, free: 40.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3518, allocations: 1.031 kB / 382.1 MB, free: 40.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.916e-05/0.3518, allocations: 0 / 382.1 MB, free: 40.09 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.002688/0.3545, allocations: 1.024 MB / 383.1 MB, free: 39.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.3546, allocations: 9.188 kB / 383.1 MB, free: 39.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002386/0.3548, allocations: 114.8 kB / 383.2 MB, free: 39.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002369/0.3551, allocations: 88.16 kB / 383.3 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.3564, allocations: 0.5771 MB / 383.9 MB, free: 38.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.956e-05/0.3564, allocations: 48.53 kB / 383.9 MB, free: 38.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.3566, allocations: 61.59 kB / 384 MB, free: 38.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.359, allocations: 0.9113 MB / 384.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.856e-05/0.359, allocations: 1 kB / 384.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.3591, allocations: 26 kB / 384.9 MB, free: 38.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.79e-05/0.3592, allocations: 36.2 kB / 385 MB, free: 38.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002147/0.3614, allocations: 0.7891 MB / 385.7 MB, free: 37.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005666/0.3671, allocations: 2.811 MB / 388.6 MB, free: 34.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.3684, allocations: 0.7462 MB / 389.3 MB, free: 33.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.61e-05/0.3684, allocations: 8.312 kB / 389.3 MB, free: 33.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008551/0.3693, allocations: 385 kB / 389.7 MB, free: 33.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.978e-06/0.3693, allocations: 4 kB / 389.7 MB, free: 33.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=43): time 0.004209/0.3736, allocations: 1.206 MB / 390.9 MB, free: 32.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.3736, allocations: 81.11 kB / 391 MB, free: 32.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000893/0.3745, allocations: 0.5605 MB / 391.5 MB, free: 31.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.455e-05/0.3746, allocations: 37.7 kB / 391.6 MB, free: 31.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002511/0.3749, allocations: 386.4 kB / 391.9 MB, free: 31.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.375, allocations: 134.1 kB / 392.1 MB, free: 30.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.714e-05/0.3751, allocations: 11.94 kB / 392.1 MB, free: 30.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.267e-05/0.3752, allocations: 334.8 kB / 392.4 MB, free: 30.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006141/0.3758, allocations: 229 kB / 392.6 MB, free: 30.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000652/0.3764, allocations: 360.8 kB / 393 MB, free: 30.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006396/0.3771, allocations: 260 kB / 393.2 MB, free: 29.76 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3771, allocations: 4 kB / 393.2 MB, free: 29.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=57) (initialization): time 0.001808/0.3789, allocations: 0.7202 MB / 394 MB, free: 29.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.379, allocations: 4 kB / 394 MB, free: 29.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.379, allocations: 4 kB / 394 MB, free: 29.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007975/0.3798, allocations: 213.1 kB / 394.2 MB, free: 28.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005805/0.3804, allocations: 79.89 kB / 394.3 MB, free: 28.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004161/0.3846, allocations: 2.731 MB / 397 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006874/0.3853, allocations: 59.7 kB / 397.1 MB, free: 25.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/0.3854, allocations: 16 kB / 397.1 MB, free: 25.79 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,rectifier.diode.idealDiode[1].off,rectifier.diode.idealDiode[2].off,rectifier.diode.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * 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 {3 11} Notification: Performance of prepare postOptimizeDAE: time 0.0006261/0.386, allocations: 333.4 kB / 397.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.3862, allocations: 55.3 kB / 397.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001821/0.3864, allocations: 69.27 kB / 397.5 MB, free: 25.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.3864, allocations: 8 kB / 397.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3865, allocations: 0 / 397.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3865, allocations: 3.984 kB / 397.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.3899, allocations: 1.538 MB / 399.1 MB, free: 23.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.39, allocations: 0 / 399.1 MB, free: 23.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005152/0.3905, allocations: 51.91 kB / 399.1 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007333/0.3912, allocations: 204.8 kB / 399.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.128e-05/0.3913, allocations: 7.984 kB / 399.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004052/0.3954, allocations: 2.711 MB / 402 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3954, allocations: 0 / 402 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002551/0.398, allocations: 1.133 MB / 403.2 MB, free: 19.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004358/0.3985, allocations: 192.4 kB / 403.4 MB, free: 19.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.3986, allocations: 8 kB / 403.4 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005078/0.3991, allocations: 27.97 kB / 403.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.3994, allocations: 47.92 kB / 403.4 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-05/0.3994, allocations: 12 kB / 403.4 MB, free: 19.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006543/0.4001, allocations: 414.8 kB / 403.9 MB, free: 18.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4001, allocations: 4 kB / 403.9 MB, free: 18.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001016/0.4011, allocations: 203.3 kB / 404.1 MB, free: 18.56 MB / 298.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: 9 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode.idealDiode[1].off,rectifier.diode.idealDiode[2].off,rectifier.diode.idealDiode[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y) * 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 (30): * Single equations (assignments): 26 * 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 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.002797/0.4039, allocations: 1.67 MB / 405.7 MB, free: 16.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.4059, allocations: 0.7611 MB / 406.5 MB, free: 16.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4059, allocations: 0 / 406.5 MB, free: 16.08 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.407, allocations: 470.7 kB / 406.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.4081, allocations: 143.6 kB / 407.1 MB, free: 15.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/0.4133, allocations: 4.684 MB / 411.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006102/0.414, allocations: 1.078 MB / 412.8 MB, free: 9.559 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005062/0.4145, allocations: 239.4 kB / 413.1 MB, free: 9.324 MB / 298.7 MB Notification: Performance of SimCode: time 1.212e-06/0.4145, allocations: 4 kB / 413.1 MB, free: 9.32 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.964/3.378, allocations: 15.89 MB / 429 MB, free: 9.43 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_DiodeCenterTapmPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_DiodeCenterTapmPulse.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse_res.mat does not exist to compare? outputFormat=mat