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.00235/0.00235, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.033/2.033, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001043/0.001043, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.813e-05/2.829e-05, allocations: 0 / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09714/0.0972, allocations: 47.58 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4135/0.5108, allocations: 85.46 MB / 454.7 MB, free: 7.836 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003404/0.5112, allocations: 85.44 kB / 454.7 MB, free: 7.789 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05805/0.5692, allocations: 12.37 MB / 467.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.5693, allocations: 0 / 467.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.863e-05/0.5694, allocations: 16 kB / 467.1 MB, free: 13.12 MB / 346.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.003517/0.5729, allocations: 0.9874 MB / 468.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.372e-05/0.573, allocations: 8.031 kB / 468.1 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003554/0.5734, allocations: 114.4 kB / 468.2 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003363/0.5737, allocations: 98.83 kB / 468.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001538/0.5753, allocations: 0.524 MB / 468.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-05/0.5754, allocations: 57.98 kB / 468.9 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/0.5756, allocations: 68 kB / 469 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.5776, allocations: 0.6914 MB / 469.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.165e-05/0.5777, allocations: 7.891 kB / 469.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/0.5779, allocations: 36 kB / 469.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.5779, allocations: 16 kB / 469.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.5795, allocations: 493 kB / 470.2 MB, free: 9.895 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007267/0.5868, allocations: 2.641 MB / 472.8 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001708/0.5886, allocations: 0.5219 MB / 473.4 MB, free: 6.621 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007559/0.5894, allocations: 262.5 kB / 473.6 MB, free: 6.359 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.772e-05/0.5895, allocations: 12.55 kB / 473.6 MB, free: 6.348 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001079/0.5906, allocations: 398.4 kB / 474 MB, free: 5.945 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 3.246e-06/0.5906, allocations: 4 kB / 474 MB, free: 5.941 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.002036/0.5926, allocations: 0.6084 MB / 474.6 MB, free: 5.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.5928, allocations: 119.4 kB / 474.8 MB, free: 5.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.5938, allocations: 472.8 kB / 475.2 MB, free: 4.707 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001751/0.594, allocations: 53.69 kB / 475.3 MB, free: 4.648 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003566/0.5944, allocations: 351.1 kB / 475.6 MB, free: 4.305 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00029/0.5947, allocations: 197.2 kB / 475.8 MB, free: 4.109 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-05/0.5948, allocations: 16 kB / 475.8 MB, free: 4.094 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.595, allocations: 342.8 kB / 476.2 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006174/0.5956, allocations: 189.5 kB / 476.3 MB, free: 3.566 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000806/0.5964, allocations: 367.9 kB / 476.7 MB, free: 3.129 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006974/0.5971, allocations: 243.3 kB / 476.9 MB, free: 2.887 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.5971, allocations: 0 / 476.9 MB, free: 2.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002027/0.5992, allocations: 0.7049 MB / 477.6 MB, free: 2.164 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009992/0.6002, allocations: 1.863 MB / 479.5 MB, free: 160 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.6003, allocations: 8 kB / 479.5 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009385/0.6012, allocations: 152.9 kB / 479.7 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.6023, allocations: 119.8 kB / 479.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004569/0.6069, allocations: 2.308 MB / 482.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.608, allocations: 99.44 kB / 482.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.6082, allocations: 27.95 kB / 482.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.6082, allocations: 4 kB / 482.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001976/0.6102, allocations: 0.6684 MB / 482.9 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.6102, allocations: 8 kB / 482.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006559/0.6109, allocations: 148.7 kB / 483 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009151/0.6118, allocations: 116.3 kB / 483.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004339/0.6162, allocations: 2.29 MB / 485.4 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000817/0.6171, allocations: 75.64 kB / 485.5 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-05/0.6172, allocations: 27.98 kB / 485.5 MB, free: 9.832 MB / 362.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 () * 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.0003449/0.6175, allocations: 164.9 kB / 485.7 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002533/0.6178, allocations: 79.14 kB / 485.8 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002082/0.6199, allocations: 0.655 MB / 486.4 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.62, allocations: 4 kB / 486.4 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.62, allocations: 0 / 486.4 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/0.62, allocations: 3.984 kB / 486.4 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003795/0.6238, allocations: 1.471 MB / 487.9 MB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.6239, allocations: 0 / 487.9 MB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008827/0.6247, allocations: 79.88 kB / 488 MB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007472/0.6255, allocations: 156.8 kB / 488.1 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.6257, allocations: 15.98 kB / 488.2 MB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00432/0.63, allocations: 2.306 MB / 490.5 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.6301, allocations: 0 / 490.5 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002857/0.6329, allocations: 1.012 MB / 491.5 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005412/0.6335, allocations: 212 kB / 491.7 MB, free: 3.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/0.6337, allocations: 12 kB / 491.7 MB, free: 3.418 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008883/0.6346, allocations: 55.95 kB / 491.8 MB, free: 3.363 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002938/0.6349, allocations: 72.45 kB / 491.8 MB, free: 3.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.936e-05/0.635, allocations: 27.92 kB / 491.8 MB, free: 3.266 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007338/0.6357, allocations: 357.6 kB / 492.2 MB, free: 2.922 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6358, allocations: 0 / 492.2 MB, free: 2.922 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001789/0.6376, allocations: 351.1 kB / 492.5 MB, free: 2.578 MB / 362.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) * 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.003411/0.641, allocations: 1.61 MB / 494.2 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00397/0.645, allocations: 1.346 MB / 495.5 MB, free: 15.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/0.6451, allocations: 3.938 kB / 495.5 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.6466, allocations: 486.4 kB / 496 MB, free: 15.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.6477, allocations: 106.1 kB / 496.1 MB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00426/0.652, allocations: 1.151 MB / 497.2 MB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008328/0.6529, allocations: 0.9666 MB / 498.2 MB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007124/0.6536, allocations: 259.3 kB / 498.5 MB, free: 12.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.343e-06/0.6537, allocations: 0 / 498.5 MB, free: 12.51 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.165/3.819, allocations: 14.94 MB / 0.5014 GB, free: 13.55 MB / 394.7 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