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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_3.2.3_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.001236/0.001236, allocations: 102.7 kB / 18.4 MB, free: 4.66 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.001233/0.001233, allocations: 190.1 kB / 19.34 MB, free: 3.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.27/1.27, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.83 kB / 329.3 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08211/0.08339, allocations: 46.6 MB / 375.9 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL): time 0.1659/0.2494, allocations: 4.84 MB / 380.7 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002381/0.2518, allocations: 1.423 MB / 382.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002999/0.2521, allocations: 20.78 kB / 382.1 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.2524, allocations: 130.8 kB / 382.3 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004191/0.2529, allocations: 211.1 kB / 382.5 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006388/0.2535, allocations: 366.9 kB / 382.8 MB, free: 9.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009469/0.2545, allocations: 1.058 MB / 383.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006221/0.2551, allocations: 419.2 kB / 384.3 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004013/0.2555, allocations: 406.7 kB / 384.7 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004572/0.256, allocations: 433.6 kB / 385.1 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.2561, allocations: 101.9 kB / 385.2 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/0.2563, allocations: 99.75 kB / 385.3 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.2565, allocations: 221.9 kB / 385.5 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003467/0.2568, allocations: 463.4 kB / 386 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.2579, allocations: 1.128 MB / 387.1 MB, free: 7.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2579, allocations: 0 / 387.1 MB, free: 7.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2579, allocations: 0 / 387.1 MB, free: 7.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.2579, allocations: 3.938 kB / 387.1 MB, free: 7.73 MB / 318.1 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.002025/0.2599, allocations: 1.204 MB / 388.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.26, allocations: 9.875 kB / 388.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.2601, allocations: 102 kB / 388.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009469/0.2611, allocations: 0.5889 MB / 389 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.464e-05/0.2612, allocations: 56.77 kB / 389.1 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.2613, allocations: 73.88 kB / 389.2 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.2626, allocations: 0.7648 MB / 389.9 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.2626, allocations: 1.703 kB / 389.9 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.695e-05/0.2627, allocations: 32.61 kB / 390 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.2627, allocations: 17.94 kB / 390 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.2639, allocations: 0.5639 MB / 390.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003858/0.2677, allocations: 2.653 MB / 393.2 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.2688, allocations: 0.5499 MB / 393.7 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005284/0.2693, allocations: 308.4 kB / 394 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.491e-05/0.2694, allocations: 17.45 kB / 394.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007611/0.2701, allocations: 456.5 kB / 394.5 MB, free: 3.641 MB / 318.1 MB Notification: Performance of pre-optimization done (n=69): time 2.204e-06/0.2701, allocations: 0 / 394.5 MB, free: 3.641 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.003026/0.2732, allocations: 1.212 MB / 395.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.2732, allocations: 114 kB / 395.8 MB, free: 3.047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006182/0.2738, allocations: 0.5375 MB / 396.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.648e-05/0.2739, allocations: 44.3 kB / 396.4 MB, free: 2.754 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/0.2741, allocations: 342.7 kB / 396.7 MB, free: 2.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.2743, allocations: 210.1 kB / 396.9 MB, free: 2.324 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/0.2745, allocations: 135.8 kB / 397.1 MB, free: 2.258 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.2746, allocations: 389 kB / 397.5 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004909/0.2751, allocations: 232.4 kB / 397.7 MB, free: 1.824 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005745/0.2757, allocations: 420.9 kB / 398.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009619/0.2767, allocations: 0.6512 MB / 398.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.2767, allocations: 6.656 kB / 398.8 MB, free: 1.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001385/0.2781, allocations: 0.838 MB / 399.6 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.2781, allocations: 34.59 kB / 399.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.2781, allocations: 5.5 kB / 399.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000433/0.2786, allocations: 145.8 kB / 399.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004652/0.279, allocations: 131.7 kB / 399.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002716/0.2818, allocations: 2.529 MB / 402.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004986/0.2823, allocations: 92.28 kB / 402.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.545e-05/0.2823, allocations: 31.88 kB / 402.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006415/0.283, allocations: 377.4 kB / 402.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005758/0.2836, allocations: 407.5 kB / 403.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001014/0.2846, allocations: 0.6326 MB / 403.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.389e-06/0.2846, allocations: 2.312 kB / 404 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001422/0.286, allocations: 0.8149 MB / 404.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.917e-05/0.2861, allocations: 35.78 kB / 404.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2861, allocations: 8.219 kB / 404.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003862/0.2865, allocations: 153.1 kB / 405 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004589/0.287, allocations: 121.2 kB / 405.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002605/0.2896, allocations: 2.511 MB / 407.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.2901, allocations: 80.86 kB / 407.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.486e-05/0.2901, allocations: 33.48 kB / 407.7 MB, free: 10.96 MB / 334.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,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean1.y,fundamentalWaveVoltage.mean2.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean1.y,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.0002198/0.2904, allocations: 252.1 kB / 407.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.2905, allocations: 73.36 kB / 408 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.292, allocations: 0.7549 MB / 408.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.292, allocations: 3.984 kB / 408.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.292, allocations: 7.938 kB / 408.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.2923, allocations: 209.6 kB / 409 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.851e-05/0.2924, allocations: 16.59 kB / 409 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004022/0.2928, allocations: 40.17 kB / 409 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.2929, allocations: 55.17 kB / 409.1 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001997/0.295, allocations: 0.8555 MB / 410 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001811/0.2968, allocations: 1.127 MB / 411.1 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005039/0.2973, allocations: 279.8 kB / 411.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003952/0.2977, allocations: 375.3 kB / 411.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of Backend: time 5.61e-07/0.2977, allocations: 0 / 411.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002312/0.3, allocations: 1.327 MB / 413 MB, free: 7.621 MB / 334.1 MB Notification: Performance of SimCode: time 0.002229/0.3023, allocations: 1.864 MB / 414.9 MB, free: 6.262 MB / 334.1 MB Notification: Performance of Templates: time 0.02127/0.3235, allocations: 13.82 MB / 428.7 MB, free: 9.113 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1)