Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002332/0.002331, allocations: 177.8 kB / 8.363 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.142/2.142, 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.00113/0.00113, allocations: 89.53 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.98e-05/2.969e-05, allocations: 0 / 314.9 MB, free: 9.035 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3397, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1403/0.4801, allocations: 84.8 MB / 447.2 MB, free: 1.398 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003513/0.4805, allocations: 91.94 kB / 447.3 MB, free: 1.309 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05689/0.5374, allocations: 12.24 MB / 459.6 MB, free: 5.098 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5375, allocations: 0 / 459.6 MB, free: 5.098 MB / 347.1 MB Notification: Performance of Transformations before backend: time 7.297e-05/0.5376, allocations: 23.98 kB / 459.6 MB, free: 5.074 MB / 347.1 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.003207/0.5408, allocations: 0.9874 MB / 460.6 MB, free: 4.027 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.5408, allocations: 12.02 kB / 460.6 MB, free: 4.016 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004165/0.5413, allocations: 98.83 kB / 460.7 MB, free: 3.918 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00152/0.5428, allocations: 0.5162 MB / 461.2 MB, free: 3.355 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.499e-05/0.5429, allocations: 24 kB / 461.2 MB, free: 3.332 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001947/0.5431, allocations: 44 kB / 461.3 MB, free: 3.289 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001632/0.5448, allocations: 451.9 kB / 461.7 MB, free: 2.848 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.5465, allocations: 0.6094 MB / 462.3 MB, free: 2.211 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.949e-05/0.5466, allocations: 4.875 kB / 462.3 MB, free: 2.207 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.582e-05/0.5467, allocations: 4 kB / 462.3 MB, free: 2.203 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.799e-05/0.5468, allocations: 19.95 kB / 462.4 MB, free: 2.184 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007001/0.5538, allocations: 2.494 MB / 464.9 MB, free: 15.6 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.5553, allocations: 0.4989 MB / 465.4 MB, free: 15.09 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007102/0.5561, allocations: 252.5 kB / 465.6 MB, free: 14.84 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.83e-05/0.5562, allocations: 16.55 kB / 465.6 MB, free: 14.82 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009961/0.5572, allocations: 376.7 kB / 466 MB, free: 14.44 MB / 363.1 MB Notification: Performance of pre-optimization done (n=67): time 3.477e-06/0.5572, allocations: 4 kB / 466 MB, free: 14.43 MB / 363.1 MB Notification: Performance of matching and sorting (n=67): time 0.001759/0.559, allocations: 0.5616 MB / 466.5 MB, free: 13.86 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.25e-05/0.5591, allocations: 120.3 kB / 466.7 MB, free: 13.72 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008023/0.5599, allocations: 385.3 kB / 467 MB, free: 13.34 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001927/0.5601, allocations: 29.7 kB / 467.1 MB, free: 13.3 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/0.5605, allocations: 374.7 kB / 467.4 MB, free: 12.93 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002853/0.5608, allocations: 181.3 kB / 467.6 MB, free: 12.75 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.341e-05/0.5609, allocations: 4 kB / 467.6 MB, free: 12.75 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.561, allocations: 338.8 kB / 467.9 MB, free: 12.41 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005294/0.5616, allocations: 177.5 kB / 468.1 MB, free: 12.23 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006993/0.5623, allocations: 342.4 kB / 468.5 MB, free: 11.82 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006075/0.5629, allocations: 200.7 kB / 468.7 MB, free: 11.63 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/0.5629, allocations: 7.891 kB / 468.7 MB, free: 11.62 MB / 363.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001866/0.5648, allocations: 0.6066 MB / 469.3 MB, free: 11 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009499/0.5658, allocations: 1.864 MB / 471.1 MB, free: 8.992 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.731e-05/0.5659, allocations: 19.94 kB / 471.1 MB, free: 8.973 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008488/0.5668, allocations: 142 kB / 471.3 MB, free: 8.832 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009998/0.5678, allocations: 115.8 kB / 471.4 MB, free: 8.719 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004411/0.5722, allocations: 2.232 MB / 473.6 MB, free: 6.371 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.5733, allocations: 79.53 kB / 473.7 MB, free: 6.293 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.056e-05/0.5734, allocations: 24 kB / 473.7 MB, free: 6.27 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.5734, allocations: 4 kB / 473.7 MB, free: 6.266 MB / 363.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001713/0.5752, allocations: 0.5595 MB / 474.3 MB, free: 5.707 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.5752, allocations: 9.219 kB / 474.3 MB, free: 5.699 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006296/0.5759, allocations: 140.7 kB / 474.4 MB, free: 5.559 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009834/0.5769, allocations: 128.2 kB / 474.6 MB, free: 5.434 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004169/0.5811, allocations: 2.2 MB / 476.8 MB, free: 3.121 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007854/0.5819, allocations: 59.61 kB / 476.8 MB, free: 3.062 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.252e-05/0.582, allocations: 31.98 kB / 476.9 MB, free: 3.031 MB / 363.1 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 () * 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.0003336/0.5824, allocations: 138 kB / 477 MB, free: 2.895 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001795/0.5842, allocations: 0.5655 MB / 477.6 MB, free: 2.316 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.5845, allocations: 63.25 kB / 477.6 MB, free: 2.254 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.5864, allocations: 0.5883 MB / 478.2 MB, free: 1.656 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.758e-05/0.5865, allocations: 8 kB / 478.2 MB, free: 1.648 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.5865, allocations: 128 / 478.2 MB, free: 1.648 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.5866, allocations: 11.98 kB / 478.2 MB, free: 1.637 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003781/0.5903, allocations: 1.327 MB / 479.6 MB, free: 268 kB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.5904, allocations: 0 / 479.6 MB, free: 268 kB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008703/0.5913, allocations: 87.88 kB / 479.6 MB, free: 180 kB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007824/0.5921, allocations: 140.9 kB / 479.8 MB, free: 36 kB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001443/0.5923, allocations: 7.984 kB / 479.8 MB, free: 28 kB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004546/0.5968, allocations: 2.226 MB / 482 MB, free: 13.69 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/0.5969, allocations: 0 / 482 MB, free: 13.69 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/0.5997, allocations: 0.9554 MB / 483 MB, free: 12.71 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006413/0.6004, allocations: 196.2 kB / 483.2 MB, free: 12.5 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.6006, allocations: 11.98 kB / 483.2 MB, free: 12.49 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008356/0.6015, allocations: 47.89 kB / 483.2 MB, free: 12.45 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002799/0.6018, allocations: 72.42 kB / 483.3 MB, free: 12.38 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.363e-05/0.6019, allocations: 19.98 kB / 483.3 MB, free: 12.36 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0005748/0.6025, allocations: 291 kB / 483.6 MB, free: 12.07 MB / 379.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6025, allocations: 3.938 kB / 483.6 MB, free: 12.07 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001946/0.6044, allocations: 322.9 kB / 483.9 MB, free: 11.75 MB / 379.1 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) * 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.00306/0.6075, allocations: 1.517 MB / 485.4 MB, free: 10.21 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.003508/0.6111, allocations: 1.271 MB / 486.7 MB, free: 8.891 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 9.188e-06/0.6112, allocations: 0 / 486.7 MB, free: 8.891 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.6124, allocations: 460.3 kB / 487.1 MB, free: 8.434 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009236/0.6134, allocations: 83.81 kB / 487.2 MB, free: 8.355 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004161/0.6175, allocations: 1.085 MB / 488.3 MB, free: 7.219 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007647/0.6184, allocations: 0.9547 MB / 489.3 MB, free: 6.238 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006781/0.6191, allocations: 267.3 kB / 489.5 MB, free: 5.977 MB / 379.1 MB Notification: Performance of SimCode: time 1.302e-06/0.6191, allocations: 0 / 489.5 MB, free: 5.977 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.959/3.578, allocations: 14.51 MB / 0.4922 GB, free: 7.48 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat