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_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_cpp_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_cpp_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.001622/0.001622, allocations: 181.6 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.017/2.017, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001141/0.001141, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.311e-05/3.34e-05, allocations: 11.94 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0916/0.09166, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4316/0.5234, allocations: 85.74 MB / 454.9 MB, free: 7.219 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003327/0.5237, allocations: 88.19 kB / 455 MB, free: 7.168 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05805/0.5818, allocations: 12.69 MB / 467.7 MB, free: 12.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5819, allocations: 0 / 467.7 MB, free: 12.44 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.909e-05/0.582, allocations: 23.94 kB / 467.7 MB, free: 12.41 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.003345/0.5853, allocations: 0.9938 MB / 468.7 MB, free: 11.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.5854, allocations: 12.03 kB / 468.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003337/0.5857, allocations: 110.5 kB / 468.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003246/0.5861, allocations: 102.8 kB / 469 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001553/0.5876, allocations: 0.5317 MB / 469.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.949e-05/0.5878, allocations: 54 kB / 469.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002254/0.588, allocations: 79.98 kB / 469.6 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002119/0.5901, allocations: 0.7084 MB / 470.3 MB, free: 9.703 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.91e-05/0.5902, allocations: 7.938 kB / 470.3 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.5903, allocations: 28 kB / 470.4 MB, free: 9.668 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.669e-05/0.5904, allocations: 23.95 kB / 470.4 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/0.5921, allocations: 0.4921 MB / 470.9 MB, free: 9.148 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007437/0.5996, allocations: 2.721 MB / 473.6 MB, free: 6.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001698/0.6013, allocations: 0.5093 MB / 474.1 MB, free: 5.801 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008352/0.6022, allocations: 291.6 kB / 474.4 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-05/0.6023, allocations: 12.55 kB / 474.4 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.6035, allocations: 405.8 kB / 474.8 MB, free: 5.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=69): time 3.397e-06/0.6035, allocations: 4 kB / 474.8 MB, free: 5.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=69): time 0.001966/0.6055, allocations: 0.6162 MB / 475.4 MB, free: 4.457 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.892e-05/0.6056, allocations: 119.3 kB / 475.5 MB, free: 4.316 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/0.6067, allocations: 473 kB / 476 MB, free: 3.852 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001865/0.6069, allocations: 45.7 kB / 476 MB, free: 3.801 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003586/0.6072, allocations: 362.9 kB / 476.4 MB, free: 3.441 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003654/0.6076, allocations: 209.1 kB / 476.6 MB, free: 3.234 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.592e-05/0.6077, allocations: 16 kB / 476.6 MB, free: 3.219 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.6079, allocations: 338.8 kB / 477 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006292/0.6085, allocations: 193.5 kB / 477.1 MB, free: 2.688 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007926/0.6093, allocations: 372 kB / 477.5 MB, free: 2.254 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007273/0.6101, allocations: 248.9 kB / 477.7 MB, free: 2.004 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.6101, allocations: 4 kB / 477.8 MB, free: 2 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00208/0.6122, allocations: 0.7201 MB / 478.5 MB, free: 1.266 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009098/0.6131, allocations: 1.863 MB / 480.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.361e-05/0.6132, allocations: 4 kB / 480.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008621/0.6141, allocations: 148.6 kB / 480.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.6152, allocations: 131.8 kB / 480.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004431/0.6196, allocations: 2.28 MB / 482.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.6208, allocations: 99.38 kB / 483 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.6209, allocations: 32 kB / 483 MB, free: 12.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.6209, allocations: 4 kB / 483 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002033/0.623, allocations: 0.683 MB / 483.7 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.623, allocations: 8.172 kB / 483.7 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006544/0.6237, allocations: 145.2 kB / 483.9 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.6247, allocations: 135.7 kB / 484 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00427/0.629, allocations: 2.253 MB / 486.2 MB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008268/0.6299, allocations: 79.55 kB / 486.3 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.113e-05/0.63, allocations: 24 kB / 486.3 MB, free: 8.965 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 (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.0003631/0.6304, allocations: 172.7 kB / 486.5 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/0.6306, allocations: 67.16 kB / 486.6 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/0.6328, allocations: 0.6671 MB / 487.2 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.685e-05/0.6328, allocations: 11.95 kB / 487.3 MB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.6328, allocations: 0 / 487.3 MB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.6329, allocations: 3.984 kB / 487.3 MB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003819/0.6367, allocations: 1.479 MB / 488.7 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.6367, allocations: 3.984 kB / 488.7 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009165/0.6377, allocations: 95.88 kB / 488.8 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006728/0.6384, allocations: 138 kB / 489 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.6385, allocations: 15.98 kB / 489 MB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00423/0.6427, allocations: 2.273 MB / 491.3 MB, free: 3.824 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.6428, allocations: 4 kB / 491.3 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002956/0.6457, allocations: 1.031 MB / 492.3 MB, free: 2.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.6464, allocations: 208.1 kB / 492.5 MB, free: 2.547 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/0.6466, allocations: 23.98 kB / 492.5 MB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009191/0.6475, allocations: 51.97 kB / 492.6 MB, free: 2.473 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002954/0.6479, allocations: 68.45 kB / 492.6 MB, free: 2.406 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.504e-05/0.648, allocations: 19.98 kB / 492.7 MB, free: 2.387 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007699/0.6488, allocations: 365.6 kB / 493 MB, free: 2.031 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6488, allocations: 0 / 493 MB, free: 2.031 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001753/0.6505, allocations: 359.1 kB / 493.4 MB, free: 1.68 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.003349/0.6539, allocations: 1.613 MB / 495 MB, free: 40 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003705/0.6577, allocations: 1.351 MB / 496.3 MB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/0.6577, allocations: 4 kB / 496.3 MB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00133/0.6591, allocations: 474.4 kB / 496.8 MB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.6602, allocations: 119.6 kB / 496.9 MB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004417/0.6647, allocations: 1.211 MB / 498.1 MB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007688/0.6655, allocations: 0.9627 MB / 499.1 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007229/0.6662, allocations: 283.3 kB / 499.4 MB, free: 11.52 MB / 378.7 MB Notification: Performance of SimCode: time 1.503e-06/0.6662, allocations: 4 kB / 499.4 MB, free: 11.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.129/3.795, allocations: 15.18 MB / 0.5025 GB, free: 12.31 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat