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.001524/0.001524, allocations: 181.9 kB / 16.4 MB, free: 5.723 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.162/2.162, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001137/0.001136, allocations: 88.5 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003771, allocations: 11.98 kB / 327.1 MB, free: 80 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3235, allocations: 47.55 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1378/0.4614, allocations: 85.56 MB / 460.2 MB, free: 11.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003692/0.4618, allocations: 87.95 kB / 460.3 MB, free: 11.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05682/0.5186, allocations: 12.38 MB / 472.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.5187, allocations: 0 / 472.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.684e-05/0.5188, allocations: 16 kB / 472.7 MB, free: 14.62 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.003434/0.5222, allocations: 1.073 MB / 473.8 MB, free: 13.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.5223, allocations: 8.031 kB / 473.8 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003389/0.5227, allocations: 118.5 kB / 473.9 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002751/0.5229, allocations: 98.83 kB / 474 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.5244, allocations: 0.524 MB / 474.5 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.925e-05/0.5245, allocations: 53.94 kB / 474.5 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.5247, allocations: 75.91 kB / 474.6 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002485/0.5272, allocations: 0.7576 MB / 475.4 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.426e-05/0.5273, allocations: 7.875 kB / 475.4 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.5274, allocations: 31.94 kB / 475.4 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.5275, allocations: 16 kB / 475.4 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.5299, allocations: 0.5985 MB / 476 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007089/0.537, allocations: 2.641 MB / 478.7 MB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002251/0.5393, allocations: 0.6078 MB / 479.3 MB, free: 7.762 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.5395, allocations: 16.55 kB / 479.3 MB, free: 7.746 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001523/0.541, allocations: 465.7 kB / 479.8 MB, free: 7.273 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 6.342e-06/0.5411, allocations: 3.984 kB / 479.8 MB, free: 7.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.005909/0.547, allocations: 1.246 MB / 481 MB, free: 5.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.5471, allocations: 119.4 kB / 481.1 MB, free: 5.855 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.5482, allocations: 478.2 kB / 481.6 MB, free: 5.379 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001749/0.5484, allocations: 41.7 kB / 481.6 MB, free: 5.332 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003551/0.5487, allocations: 359 kB / 482 MB, free: 4.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002874/0.5491, allocations: 193.2 kB / 482.2 MB, free: 4.789 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.252e-05/0.5492, allocations: 19.94 kB / 482.2 MB, free: 4.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.5493, allocations: 338.8 kB / 482.5 MB, free: 4.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.5503, allocations: 249.9 kB / 482.8 MB, free: 4.184 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.5515, allocations: 426 kB / 483.2 MB, free: 3.699 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.5526, allocations: 302.4 kB / 483.5 MB, free: 3.395 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/0.5526, allocations: 4 kB / 483.5 MB, free: 3.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002823/0.5555, allocations: 0.8186 MB / 484.3 MB, free: 2.555 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008002/0.5563, allocations: 1.867 MB / 486.2 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.5564, allocations: 4 kB / 486.2 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008803/0.5572, allocations: 153.6 kB / 486.3 MB, free: 392 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.5583, allocations: 119.8 kB / 486.4 MB, free: 272 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004603/0.5629, allocations: 2.365 MB / 488.8 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.564, allocations: 91.34 kB / 488.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.64e-05/0.5641, allocations: 32 kB / 488.9 MB, free: 13.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.5641, allocations: 9.359 kB / 488.9 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002537/0.5667, allocations: 0.7586 MB / 489.7 MB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.5667, allocations: 4 kB / 489.7 MB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006805/0.5674, allocations: 149 kB / 489.8 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00089/0.5683, allocations: 119.8 kB / 490 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004457/0.5728, allocations: 2.332 MB / 492.3 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000802/0.5737, allocations: 79.5 kB / 492.4 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-05/0.5738, allocations: 28 kB / 492.4 MB, free: 10.03 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.0006766/0.5744, allocations: 304.9 kB / 492.7 MB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.5747, allocations: 71.16 kB / 492.8 MB, free: 9.652 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002921/0.5776, allocations: 0.7684 MB / 493.5 MB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.5777, allocations: 16.02 kB / 493.5 MB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.5777, allocations: 4 kB / 493.5 MB, free: 8.852 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.5777, allocations: 11.92 kB / 493.6 MB, free: 8.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004414/0.5821, allocations: 1.565 MB / 495.1 MB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.5822, allocations: 4 kB / 495.1 MB, free: 7.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008122/0.583, allocations: 91.81 kB / 495.2 MB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007367/0.5838, allocations: 144.7 kB / 495.4 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.33e-05/0.5839, allocations: 15.98 kB / 495.4 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004481/0.5884, allocations: 2.37 MB / 497.7 MB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5884, allocations: 0 / 497.7 MB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003919/0.5923, allocations: 1.175 MB / 498.9 MB, free: 3.273 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005111/0.5929, allocations: 212 kB / 499.1 MB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.5931, allocations: 20 kB / 499.1 MB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008112/0.5939, allocations: 51.95 kB / 499.2 MB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/0.5942, allocations: 72.39 kB / 499.3 MB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.345e-05/0.5943, allocations: 23.98 kB / 499.3 MB, free: 2.883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007175/0.595, allocations: 366.8 kB / 499.6 MB, free: 2.527 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5951, allocations: 0 / 499.6 MB, free: 2.527 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001689/0.5968, allocations: 355.1 kB / 500 MB, free: 2.18 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.004321/0.6011, allocations: 1.764 MB / 0.49 GB, free: 396 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.2658/0.8669, allocations: 1.512 MB / 0.4915 GB, free: 105.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/0.867, allocations: 0.5625 kB / 0.4915 GB, free: 105.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001687/0.8687, allocations: 0.5423 MB / 0.492 GB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009795/0.8697, allocations: 100.4 kB / 0.4921 GB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005622/0.8753, allocations: 5.152 MB / 0.4971 GB, free: 101.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005935/0.876, allocations: 0.9621 MB / 0.4981 GB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006358/0.8766, allocations: 267.7 kB / 0.4983 GB, free: 100.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.422e-06/0.8766, allocations: 0 / 0.4983 GB, free: 100.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.974/3.851, allocations: 14.68 MB / 0.5127 GB, free: 97.56 MB / 378.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