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.0009353/0.0009353, allocations: 178.4 kB / 8.697 MB, free: 388 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.436/1.436, allocations: 205.3 MB / 214.4 MB, free: 1.668 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.0008963/0.0008959, allocations: 86.39 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.914e-05/1.917e-05, allocations: 4 kB / 315.6 MB, free: 22.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08968/0.08972, allocations: 47.58 MB / 363.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3112/0.401, allocations: 85.03 MB / 448.2 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.4014, allocations: 89.84 kB / 448.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03348/0.4349, allocations: 12.25 MB / 460.5 MB, free: 432 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4349, allocations: 0 / 460.5 MB, free: 432 kB / 330.7 MB Notification: Performance of Transformations before backend: time 4.191e-05/0.4349, allocations: 16 kB / 460.6 MB, free: 416 kB / 330.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.001706/0.4367, allocations: 0.983 MB / 461.5 MB, free: 15.42 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.4367, allocations: 8.031 kB / 461.5 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.4369, allocations: 98.83 kB / 461.6 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007497/0.4376, allocations: 0.5252 MB / 462.2 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.4377, allocations: 24 kB / 462.2 MB, free: 14.81 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.809e-05/0.4378, allocations: 44 kB / 462.2 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007472/0.4385, allocations: 457.2 kB / 462.7 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009541/0.4395, allocations: 0.5933 MB / 463.3 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.4395, allocations: 7.922 kB / 463.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.349e-05/0.4396, allocations: 8 kB / 463.3 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.4396, allocations: 19.95 kB / 463.3 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003394/0.443, allocations: 2.505 MB / 465.8 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007787/0.4438, allocations: 0.4928 MB / 466.3 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003284/0.4441, allocations: 250.4 kB / 466.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.964e-05/0.4442, allocations: 16.53 kB / 466.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005678/0.4448, allocations: 384.2 kB / 466.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 1.923e-06/0.4448, allocations: 0 / 466.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.0009291/0.4457, allocations: 0.5665 MB / 467.5 MB, free: 10.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/0.4458, allocations: 119 kB / 467.6 MB, free: 10.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003882/0.4462, allocations: 376 kB / 468 MB, free: 10.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.825e-05/0.4462, allocations: 41.5 kB / 468 MB, free: 10.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002027/0.4464, allocations: 336.8 kB / 468.4 MB, free: 10.08 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.4466, allocations: 181.7 kB / 468.5 MB, free: 9.922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.4466, allocations: 4 kB / 468.5 MB, free: 9.918 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.4468, allocations: 370.5 kB / 468.9 MB, free: 9.574 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.4471, allocations: 174.1 kB / 469.1 MB, free: 9.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003761/0.4474, allocations: 344.4 kB / 469.4 MB, free: 9.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003002/0.4478, allocations: 210.8 kB / 469.6 MB, free: 9.027 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.4478, allocations: 3.953 kB / 469.6 MB, free: 9.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.000955/0.4487, allocations: 0.6407 MB / 470.3 MB, free: 8.543 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007275/0.4495, allocations: 1.865 MB / 472.1 MB, free: 6.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.4495, allocations: 15.89 kB / 472.1 MB, free: 6.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004354/0.4499, allocations: 141.8 kB / 472.3 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004775/0.4504, allocations: 126.4 kB / 472.4 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002354/0.4528, allocations: 2.225 MB / 474.6 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005675/0.4534, allocations: 71.53 kB / 474.7 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.168e-05/0.4534, allocations: 23.38 kB / 474.7 MB, free: 4.312 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.4534, allocations: 8 kB / 474.7 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009056/0.4544, allocations: 0.556 MB / 475.3 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.4544, allocations: 8 kB / 475.3 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003385/0.4547, allocations: 157.9 kB / 475.4 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004328/0.4552, allocations: 115 kB / 475.6 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002302/0.4575, allocations: 2.232 MB / 477.8 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004787/0.458, allocations: 59.7 kB / 477.8 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.487e-05/0.458, allocations: 23.69 kB / 477.9 MB, free: 1.68 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 (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.0002284/0.4583, allocations: 145.9 kB / 478 MB, free: 1.543 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009022/0.4592, allocations: 0.5667 MB / 478.6 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.39e-05/0.4593, allocations: 59.25 kB / 478.6 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.4606, allocations: 0.5901 MB / 479.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.4607, allocations: 8.094 kB / 479.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.4607, allocations: 0 / 479.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/0.4607, allocations: 7.969 kB / 479.2 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001957/0.4627, allocations: 1.324 MB / 480.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4627, allocations: 0 / 480.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004125/0.4631, allocations: 87.88 kB / 480.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003571/0.4635, allocations: 140.7 kB / 480.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.179e-05/0.4635, allocations: 11.98 kB / 480.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00234/0.4659, allocations: 2.224 MB / 483 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.4659, allocations: 4 kB / 483 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.4673, allocations: 0.9571 MB / 484 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002397/0.4675, allocations: 196.2 kB / 484.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.168e-05/0.4676, allocations: 7.984 kB / 484.2 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004091/0.468, allocations: 43.97 kB / 484.2 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.4682, allocations: 72.41 kB / 484.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.177e-05/0.4682, allocations: 23.92 kB / 484.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003179/0.4686, allocations: 291 kB / 484.6 MB, free: 11.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4686, allocations: 0 / 484.6 MB, free: 11.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001149/0.4697, allocations: 322.9 kB / 484.9 MB, free: 10.82 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.001704/0.4714, allocations: 1.532 MB / 486.5 MB, free: 9.266 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00194/0.4734, allocations: 1.274 MB / 487.7 MB, free: 7.945 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.4734, allocations: 4 kB / 487.7 MB, free: 7.941 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006123/0.474, allocations: 459.8 kB / 488.2 MB, free: 7.484 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.4746, allocations: 100.2 kB / 488.3 MB, free: 7.391 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.4767, allocations: 1.048 MB / 489.3 MB, free: 6.297 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.4772, allocations: 0.9556 MB / 490.3 MB, free: 5.312 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004791/0.4777, allocations: 117 kB / 490.4 MB, free: 5.195 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003161/0.478, allocations: 251.3 kB / 490.6 MB, free: 4.949 MB / 362.7 MB Notification: Performance of SimCode: time 6.91e-07/0.478, allocations: 0 / 490.6 MB, free: 4.949 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03867/0.5167, allocations: 15.35 MB / 0.4941 GB, free: 5.574 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002183/0.517, allocations: 203.5 kB / 0.4943 GB, free: 5.367 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.436/2.953, allocations: 0 / 0.4943 GB, free: 5.367 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