Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000476/0.000476, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0005207/0.0005207, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9873/0.9873, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: simulate(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM,startTime=0,stopTime=2,tolerance=1e-05,numberOfIntervals=2000,outputFormat="mat",variableFilter="time|potentialSensor.phi.[0-9,]+.|harmonic.mean1.x|harmonic.mean2.x|harmonic.y_rms|harmonic.y_arg|integrator.y|filter.[0-9,]+..x.[0-9,]+.|toPolar.y.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") simulate(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM,startTime=0,stopTime=2,tolerance=1e-05,numberOfIntervals=2000,outputFormat="mat",variableFilter="time|potentialSensor.phi.[0-9,]+.|harmonic.mean1.x|harmonic.mean2.x|harmonic.y_rms|harmonic.y_arg|integrator.y|filter.[0-9,]+..x.[0-9,]+.|toPolar.y.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 6.41e-07/6.41e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.395e-05/1.459e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM): time 0.05711/0.05712, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.06233/0.1195, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.001942/0.1214, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.002175/0.1236, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.003153/0.1267, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.01245/0.1392, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.006151/0.1453, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.003985/0.1493, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.004439/0.1537, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.002444/0.1562, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0007139/0.1569, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.001127/0.158, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.001067/0.1591, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.001647/0.1607, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.02132/0.1821, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0005483/0.1826, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 2.234e-06/0.1826, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 4.536e-05/0.1827, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.01797/0.2006, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001707/0.2008, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00244/0.2032, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.005496/0.2087, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006687/0.2094, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007477/0.2102, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.02397/0.2341, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 0.0001093/0.2342, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005966/0.2348, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001539/0.235, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007539/0.2425, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03122/0.2737, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.005272/0.279, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.003597/0.2826, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 0.000304/0.2829, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003322/0.2862, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=141): time 1.832e-05/0.2863, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=141): time 0.01726/0.3035, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.3036, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005167/0.3088, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.000418/0.3092, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.001428/0.3106, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.000969/0.3116, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001841/0.3135, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 9.955e-05/0.3136, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.002403/0.316, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.003021/0.319, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.00473/0.3237, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.072e-05/0.3237, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=189) (initialization): time 0.009197/0.3329, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 7.662e-05/0.333, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.685e-05/0.3331, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.002912/0.336, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.3374, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0387/0.3761, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002171/0.3783, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008128/0.3791, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 53 (pwm.svPWM.firstTrigger,$PRE.pwm.svPWM.firstTrigger,pwm.svPWM.phiSec,$PRE.pwm.svPWM.phiSec,pwm.svPWM.phiPos,$PRE.pwm.svPWM.phiPos,pwm.svPWM.phiRef,$PRE.pwm.svPWM.phiRef,pwm.svPWM.uRef,$PRE.pwm.svPWM.uRef,$whenCondition3,$whenCondition2,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,pwm.svPWM.sampleTrigger,$whenCondition1,$whenCondition4,multiPhase2Level.diode_n.idealDiode[3].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[1].y,pwm.svPWM.T0,$PRE.pwm.svPWM.T0,pwm.svPWM.t0,$PRE.pwm.svPWM.t0,pwm.svPWM.tb,$PRE.pwm.svPWM.tb,pwm.svPWM.ta,$PRE.pwm.svPWM.ta,pwm.svPWM.kb,$PRE.pwm.svPWM.kb,pwm.svPWM.ka,$PRE.pwm.svPWM.ka,pwm.fire_n[3],pwm.fire_n[2],pwm.fire_n[1],integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(4,15), (4,15), (4,15)} Notification: Performance of prepare postOptimizeDAE: time 0.002409/0.3815, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/0.3827, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009367/0.3921, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.591e-05/0.3921, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.3921, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-05/0.3921, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02042/0.4126, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/0.4126, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/0.4137, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.002929/0.4166, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004852/0.4171, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09376/0.5109, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.5109, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/0.5234, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.003183/0.5266, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009887/0.5276, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/0.5296, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002467/0.532, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005747/0.5326, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.002746/0.5354, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 8.752e-05/0.5354, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.00546/0.5409, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (harmonic.mean1.x,harmonic.mean2.x,integrator.y,filter[1].x[1],filter[1].x[2],filter[2].x[1],filter[2].x[2]) * Number of discrete variables: 39 (pwm.svPWM.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pwm.fire_n[1],pwm.fire_n[2],pwm.fire_n[3],pwm.svPWM.firstTrigger,pwm.svPWM.uRef,pwm.svPWM.phiRef,pwm.svPWM.phiPos,pwm.svPWM.ka,pwm.svPWM.kb,pwm.svPWM.phiSec,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.t0,pwm.svPWM.T0,multiPhase2Level.andCondition_p[1].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[3].off,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 13 (harmonic.mean1.x,harmonic.mean2.x,pwm.svPWM.T0,pwm.svPWM.t0,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.phiSec,pwm.svPWM.kb,pwm.svPWM.ka,pwm.svPWM.phiPos,pwm.svPWM.phiRef,pwm.svPWM.uRef,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(4,14), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001877/0.5428, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.008393/0.5512, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 0.0002828/0.5515, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.005471/0.5569, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005306/0.5622, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0523/0.6145, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003065/0.6176, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.002176/0.6198, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002095/0.6219, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 7.11e-05/0.6219, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.04177/0.6637, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 899] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/PowerConverters/Examples/DCAC/PolyphaseTwoLevel/ThreePhaseTwoLevel_PWM/ThreePhaseTwoLevel_PWM.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.361201963853091]