Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 110.3 kB / 17.75 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 181.4 kB / 18.67 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009665/0.0009665, allocations: 47.91 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2266, allocations: 49.44 MB / 401.5 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL): time 0.006236/0.2328, allocations: 4.889 MB / 406.4 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003088/0.236, allocations: 1.388 MB / 407.7 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005992/0.2366, allocations: 15.94 kB / 407.8 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000431/0.237, allocations: 138.5 kB / 407.9 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006957/0.2377, allocations: 214.1 kB / 408.1 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008299/0.2386, allocations: 371.4 kB / 408.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001054/0.2397, allocations: 1.056 MB / 409.5 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005469/0.2402, allocations: 430.3 kB / 409.9 MB, free: 340 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004083/0.2406, allocations: 406.4 kB / 410.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004287/0.2411, allocations: 434 kB / 410.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000134/0.2412, allocations: 104 kB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.2414, allocations: 100 kB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001923/0.2416, allocations: 231.2 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003624/0.2419, allocations: 469.7 kB / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009379/0.2429, allocations: 1.129 MB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2429, allocations: 0 / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2429, allocations: 4 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.2429, allocations: 0 / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002158/0.2451, allocations: 1.221 MB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2451, allocations: 8.031 kB / 414 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.2453, allocations: 99.81 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009604/0.2463, allocations: 0.5988 MB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.643e-05/0.2463, allocations: 54.38 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.2464, allocations: 80.28 kB / 414.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.2478, allocations: 0.7787 MB / 415.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.2478, allocations: 7.984 kB / 415.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.055e-05/0.2479, allocations: 28 kB / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.2479, allocations: 20 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.2491, allocations: 0.5699 MB / 416.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003624/0.2527, allocations: 2.674 MB / 418.9 MB, free: 7.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.2538, allocations: 0.5601 MB / 419.5 MB, free: 6.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005713/0.2544, allocations: 298.4 kB / 419.8 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.085e-05/0.2545, allocations: 12.56 kB / 419.8 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007941/0.2553, allocations: 449.7 kB / 420.2 MB, free: 5.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 2.144e-06/0.2553, allocations: 7.938 kB / 420.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.003094/0.2584, allocations: 1.206 MB / 421.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.2585, allocations: 119.4 kB / 421.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005833/0.2591, allocations: 0.5381 MB / 422.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.628e-05/0.2591, allocations: 45.7 kB / 422.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.2594, allocations: 344.4 kB / 422.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.2595, allocations: 213 kB / 422.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.2597, allocations: 146.5 kB / 422.8 MB, free: 3.098 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2599, allocations: 374.8 kB / 423.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005199/0.2604, allocations: 232.7 kB / 423.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006041/0.2611, allocations: 419 kB / 423.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.2621, allocations: 0.6552 MB / 424.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.2622, allocations: 4 kB / 424.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001533/0.2637, allocations: 0.8327 MB / 425.3 MB, free: 440 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.212e-05/0.2637, allocations: 33.7 kB / 425.3 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.2638, allocations: 8.031 kB / 425.4 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004284/0.2642, allocations: 148.7 kB / 425.5 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004813/0.2647, allocations: 123.8 kB / 425.6 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002715/0.2674, allocations: 2.527 MB / 428.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004776/0.2679, allocations: 87.3 kB / 428.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/0.268, allocations: 31.98 kB / 428.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006328/0.2686, allocations: 382 kB / 428.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005576/0.2692, allocations: 403 kB / 429 MB, free: 12.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009818/0.2702, allocations: 0.6357 MB / 429.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.856e-06/0.2702, allocations: 0 / 429.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001885/0.2721, allocations: 0.8127 MB / 430.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.2721, allocations: 42.25 kB / 430.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.2721, allocations: 4 kB / 430.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003694/0.2725, allocations: 152.9 kB / 430.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/0.273, allocations: 115.8 kB / 430.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002851/0.2758, allocations: 2.524 MB / 433.3 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005297/0.2764, allocations: 75.55 kB / 433.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.2764, allocations: 27.98 kB / 433.4 MB, free: 7.871 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 30 (signalPWM.zeroOrderHold.firstTrigger,$PRE.signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.count,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.T_start,$PRE.signalPWM.zeroOrderHold.ySample,signalPWM.notFire,inverter.diode_n.off,inverter.transistor_n.off,inverter.diode_p.off,inverter.transistor_p.off,inverter.andCondition_n.y,inverter.andCondition_p.y,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002/0.2767, allocations: 236.7 kB / 433.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.741e-05/0.2768, allocations: 71.16 kB / 433.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.2783, allocations: 0.7643 MB / 434.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.2783, allocations: 12 kB / 434.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2784, allocations: 0 / 434.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002474/0.2786, allocations: 212 kB / 434.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.939e-05/0.2787, allocations: 16 kB / 434.7 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004368/0.2792, allocations: 43.95 kB / 434.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.2793, allocations: 52.5 kB / 434.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002081/0.2814, allocations: 0.8585 MB / 435.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00186/0.2833, allocations: 1.13 MB / 436.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000514/0.2838, allocations: 268.3 kB / 437.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003941/0.2842, allocations: 370.8 kB / 437.4 MB, free: 3.801 MB / 350.1 MB Notification: Performance of Backend: time 4.41e-07/0.2842, allocations: 0 / 437.4 MB, free: 3.801 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002313/0.2865, allocations: 1.346 MB / 438.8 MB, free: 2.398 MB / 350.1 MB Notification: Performance of SimCode: time 0.002152/0.2887, allocations: 1.861 MB / 440.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of Templates: time 0.02056/0.3093, allocations: 13.36 MB / 454 MB, free: 3.277 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1)