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_RL.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_RL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",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.0009049/0.000905, allocations: 177.8 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008502/0.0008504, allocations: 86.69 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.913e-05/1.914e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08352/0.08356, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3125/0.3961, allocations: 85.33 MB / 448.5 MB, free: 10.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.3965, allocations: 80.58 kB / 448.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03334/0.4298, allocations: 12.58 MB / 461.2 MB, free: 15.58 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4299, allocations: 0 / 461.2 MB, free: 15.58 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.501e-05/0.4299, allocations: 16 kB / 461.2 MB, free: 15.57 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: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.001762/0.4317, allocations: 1.008 MB / 462.2 MB, free: 14.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.4317, allocations: 8.031 kB / 462.2 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.4319, allocations: 98.83 kB / 462.3 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008218/0.4327, allocations: 0.5294 MB / 462.8 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.4328, allocations: 23.98 kB / 462.9 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-05/0.4329, allocations: 44 kB / 462.9 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007728/0.4337, allocations: 462.9 kB / 463.3 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009824/0.4347, allocations: 0.621 MB / 464 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.4347, allocations: 0 / 464 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.461e-05/0.4348, allocations: 4 kB / 464 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.4348, allocations: 23.94 kB / 464 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003623/0.4384, allocations: 2.582 MB / 466.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007598/0.4392, allocations: 0.4891 MB / 467.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003389/0.4395, allocations: 253.7 kB / 467.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.23e-05/0.4396, allocations: 12 kB / 467.3 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005967/0.4402, allocations: 400.8 kB / 467.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=69): time 2.154e-06/0.4402, allocations: 0 / 467.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=69): time 0.0009898/0.4412, allocations: 0.5635 MB / 468.3 MB, free: 9.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.4413, allocations: 115.4 kB / 468.4 MB, free: 9.699 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004275/0.4417, allocations: 391.6 kB / 468.8 MB, free: 9.398 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.134e-05/0.4418, allocations: 32.64 kB / 468.8 MB, free: 9.363 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002329/0.442, allocations: 337.1 kB / 469.1 MB, free: 9.121 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.4422, allocations: 204.1 kB / 469.3 MB, free: 8.945 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.4422, allocations: 0 / 469.3 MB, free: 8.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.4424, allocations: 374.9 kB / 469.7 MB, free: 8.598 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002864/0.4427, allocations: 179.5 kB / 469.9 MB, free: 8.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003835/0.4431, allocations: 358.8 kB / 470.2 MB, free: 8.172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.4434, allocations: 208.6 kB / 470.4 MB, free: 8.043 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4434, allocations: 0 / 470.4 MB, free: 8.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001055/0.4445, allocations: 0.6521 MB / 471.1 MB, free: 7.551 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007343/0.4452, allocations: 1.87 MB / 473 MB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.4452, allocations: 4 kB / 473 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004322/0.4457, allocations: 143 kB / 473.1 MB, free: 5.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005104/0.4462, allocations: 134.3 kB / 473.2 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/0.4486, allocations: 2.209 MB / 475.4 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005084/0.4491, allocations: 75.5 kB / 475.5 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.267e-05/0.4492, allocations: 31.75 kB / 475.5 MB, free: 3.328 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.606e-06/0.4492, allocations: 4 kB / 475.5 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009/0.4501, allocations: 0.558 MB / 476.1 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.4501, allocations: 11.98 kB / 476.1 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.4505, allocations: 139.5 kB / 476.3 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004462/0.4509, allocations: 123.2 kB / 476.4 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002242/0.4532, allocations: 2.212 MB / 478.6 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004924/0.4537, allocations: 63.5 kB / 478.6 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.334e-05/0.4537, allocations: 31.5 kB / 478.7 MB, free: 0.7148 MB / 346.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 (74): * Single equations (assignments): 72 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002276/0.454, allocations: 141.8 kB / 478.8 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008861/0.4549, allocations: 0.5639 MB / 479.4 MB, free: 168 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.508e-05/0.455, allocations: 67.23 kB / 479.4 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.456, allocations: 0.5993 MB / 480 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.456, allocations: 8 kB / 480.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-06/0.456, allocations: 0 / 480.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.456, allocations: 7.938 kB / 480.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.4579, allocations: 1.335 MB / 481.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.4579, allocations: 0 / 481.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004686/0.4584, allocations: 99.81 kB / 481.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003577/0.4588, allocations: 134.6 kB / 481.6 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.958e-05/0.4588, allocations: 8 kB / 481.6 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002402/0.4613, allocations: 2.202 MB / 483.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4613, allocations: 0 / 483.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.4627, allocations: 0.9648 MB / 484.8 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/0.463, allocations: 212.1 kB / 485 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.337e-05/0.4631, allocations: 4 kB / 485 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004286/0.4635, allocations: 48.08 kB / 485.1 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.4637, allocations: 64.47 kB / 485.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.545e-05/0.4637, allocations: 23.98 kB / 485.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003388/0.4641, allocations: 295 kB / 485.4 MB, free: 10.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4641, allocations: 0 / 485.4 MB, free: 10.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001173/0.4652, allocations: 334.9 kB / 485.8 MB, free: 9.926 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * 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 (53): * Single equations (assignments): 44 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.001757/0.467, allocations: 1.533 MB / 487.3 MB, free: 8.367 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.469, allocations: 1.294 MB / 488.6 MB, free: 7.027 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.469, allocations: 0 / 488.6 MB, free: 7.027 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006356/0.4696, allocations: 460.6 kB / 489 MB, free: 6.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006052/0.4702, allocations: 85.83 kB / 489.1 MB, free: 6.488 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002464/0.4727, allocations: 1.115 MB / 490.2 MB, free: 5.328 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005569/0.4733, allocations: 0.9751 MB / 491.2 MB, free: 4.324 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005054/0.4738, allocations: 109.5 kB / 491.3 MB, free: 4.215 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003374/0.4741, allocations: 259.3 kB / 491.6 MB, free: 3.961 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.4742, allocations: 0 / 491.6 MB, free: 3.961 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04136/0.5155, allocations: 15.33 MB / 0.495 GB, free: 4.598 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/0.5158, allocations: 196.9 kB / 0.4952 GB, free: 4.398 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.491/3.007, allocations: 4 kB / 0.4952 GB, free: 4.395 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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_RL_res.mat does not exist to compare? outputFormat=mat