Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.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.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",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.001186/0.001186, allocations: 180.3 kB / 17.01 MB, free: 5.125 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.47/1.47, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0009631/0.0009631, allocations: 94.59 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002854/0.0002853, allocations: 8 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2166, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09174/0.3083, allocations: 85.56 MB / 461.5 MB, free: 11.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.3087, allocations: 87.95 kB / 461.6 MB, free: 10.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0337/0.3424, allocations: 12.37 MB / 473.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3424, allocations: 0 / 473.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.826e-05/0.3425, allocations: 16 kB / 474 MB, free: 14.54 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.002472/0.345, allocations: 1.073 MB / 475 MB, free: 13.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.3451, allocations: 12.03 kB / 475 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002747/0.3453, allocations: 114.5 kB / 475.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002305/0.3456, allocations: 106.8 kB / 475.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000962/0.3466, allocations: 0.5278 MB / 475.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.697e-05/0.3466, allocations: 54 kB / 475.8 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.3468, allocations: 71.91 kB / 475.9 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.3481, allocations: 0.7576 MB / 476.7 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.473e-05/0.3482, allocations: 3.938 kB / 476.7 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-05/0.3482, allocations: 31.94 kB / 476.7 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.3483, allocations: 20 kB / 476.7 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.3495, allocations: 0.5946 MB / 477.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003978/0.3535, allocations: 2.641 MB / 480 MB, free: 8.297 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.3548, allocations: 0.6078 MB / 480.6 MB, free: 7.676 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.626e-05/0.3548, allocations: 16.55 kB / 480.6 MB, free: 7.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008414/0.3557, allocations: 461.7 kB / 481 MB, free: 7.191 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.256e-06/0.3557, allocations: 4 kB / 481 MB, free: 7.188 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.003222/0.3589, allocations: 1.246 MB / 482.3 MB, free: 5.914 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.359, allocations: 119.4 kB / 482.4 MB, free: 5.773 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006916/0.3597, allocations: 478.2 kB / 482.9 MB, free: 5.297 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.448e-05/0.3598, allocations: 41.7 kB / 482.9 MB, free: 5.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002668/0.3601, allocations: 332.5 kB / 483.2 MB, free: 4.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.3603, allocations: 201.2 kB / 483.4 MB, free: 4.723 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.232e-05/0.3603, allocations: 16 kB / 483.4 MB, free: 4.707 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3605, allocations: 378.7 kB / 483.8 MB, free: 4.328 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005151/0.361, allocations: 249.9 kB / 484.1 MB, free: 4.082 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006022/0.3616, allocations: 422 kB / 484.5 MB, free: 3.602 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006178/0.3623, allocations: 306.4 kB / 484.8 MB, free: 3.293 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.3623, allocations: 4 kB / 484.8 MB, free: 3.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001558/0.3639, allocations: 0.8649 MB / 485.6 MB, free: 2.406 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005815/0.3644, allocations: 1.863 MB / 487.5 MB, free: 404 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.3645, allocations: 4 kB / 487.5 MB, free: 400 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004808/0.365, allocations: 157.9 kB / 487.7 MB, free: 240 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000478/0.3654, allocations: 119.8 kB / 487.8 MB, free: 120 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002744/0.3682, allocations: 2.361 MB / 490.1 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006053/0.3688, allocations: 99.38 kB / 490.2 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-05/0.3689, allocations: 28 kB / 490.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.3689, allocations: 7.953 kB / 490.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001368/0.3703, allocations: 0.7586 MB / 491 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.3703, allocations: 4 kB / 491 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003885/0.3707, allocations: 151.2 kB / 491.2 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004411/0.3712, allocations: 123.8 kB / 491.3 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002554/0.3737, allocations: 2.353 MB / 493.6 MB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006458/0.3744, allocations: 83.5 kB / 493.7 MB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.232e-05/0.3745, allocations: 24 kB / 493.8 MB, free: 9.859 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005511/0.375, allocations: 312.9 kB / 494.1 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.3752, allocations: 71.16 kB / 494.1 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.3769, allocations: 0.772 MB / 494.9 MB, free: 8.684 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3769, allocations: 12 kB / 494.9 MB, free: 8.672 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3769, allocations: 0 / 494.9 MB, free: 8.672 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.3769, allocations: 3.984 kB / 494.9 MB, free: 8.668 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002897/0.3798, allocations: 1.569 MB / 496.5 MB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.3799, allocations: 4 kB / 496.5 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004209/0.3803, allocations: 91.81 kB / 496.6 MB, free: 6.949 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004137/0.3807, allocations: 140.7 kB / 496.7 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.909e-05/0.3808, allocations: 19.98 kB / 496.7 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002735/0.3835, allocations: 2.364 MB / 499.1 MB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3835, allocations: 0 / 499.1 MB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/0.3856, allocations: 1.183 MB / 0.4886 GB, free: 3.094 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003332/0.3859, allocations: 212 kB / 0.4888 GB, free: 2.867 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.3861, allocations: 20 kB / 0.4888 GB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004816/0.3865, allocations: 55.95 kB / 0.4888 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/0.3867, allocations: 72.39 kB / 0.4889 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.761e-05/0.3868, allocations: 19.98 kB / 0.4889 GB, free: 2.703 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004644/0.3872, allocations: 370.8 kB / 0.4893 GB, free: 2.344 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3873, allocations: 0 / 0.4893 GB, free: 2.344 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001274/0.3885, allocations: 355.2 kB / 0.4896 GB, free: 1.996 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002443/0.391, allocations: 1.771 MB / 0.4913 GB, free: 204 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1494/0.5404, allocations: 1.508 MB / 0.4928 GB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.5405, allocations: 0.5312 kB / 0.4928 GB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.5415, allocations: 0.5358 MB / 0.4933 GB, free: 106 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000749/0.5423, allocations: 107.5 kB / 0.4934 GB, free: 106 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003997/0.5463, allocations: 5.106 MB / 0.4984 GB, free: 101.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/0.5468, allocations: 0.9666 MB / 0.4994 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004992/0.5474, allocations: 93.31 kB / 0.4995 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003728/0.5477, allocations: 262 kB / 0.4997 GB, free: 101.2 MB / 378.7 MB Notification: Performance of SimCode: time 9.71e-07/0.5478, allocations: 0 / 0.4997 GB, free: 101.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03284/0.5806, allocations: 16.38 MB / 0.5157 GB, free: 96.96 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.5808, allocations: 271.6 kB / 0.516 GB, free: 96.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.473/3.054, allocations: 4 kB / 0.516 GB, free: 96.61 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat