Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0002078/0.0002078, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000239/0.000239, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.09646/0.09646, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] 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: simulate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,startTime=0,stopTime=24,tolerance=1e-06,numberOfIntervals=120000,outputFormat="mat",variableFilter="time|dcpm.inertiaRotor.phi|dcpm.inertiaRotor.w|inductor.i|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") simulate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,startTime=0,stopTime=24,tolerance=1e-06,numberOfIntervals=120000,outputFormat="mat",variableFilter="time|dcpm.inertiaRotor.phi|dcpm.inertiaRotor.w|inductor.i|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 9.52e-07/9.52e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.371e-05/2.467e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive): time 0.05122/0.05125, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.0202/0.07145, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.001469/0.07292, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.002646/0.07557, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.002845/0.07841, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.002119/0.08053, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.002343/0.08288, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.001331/0.08421, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.002145/0.08635, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0009564/0.08731, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0002984/0.08761, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.000564/0.08817, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0004692/0.08864, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0007133/0.08935, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.002869/0.09222, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0002746/0.0925, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 2.144e-06/0.0925, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.643e-05/0.09252, 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: 412 * Number of variables: 412 Notification: Performance of Generate backend data structure: time 0.003343/0.09586, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001466/0.09601, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006535/0.09666, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.09824, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002014/0.09844, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/0.09873, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.002154/0.1009, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 7.531e-05/0.101, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000211/0.1012, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.361e-05/0.1012, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009178/0.1021, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006406/0.1085, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.0008897/0.1094, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.0005327/0.11, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 4.8e-05/0.11, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007629/0.1108, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=122): time 1.567e-05/0.1108, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=125): time 0.005504/0.1163, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 7.588e-05/0.1164, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.1174, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0001492/0.1176, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0004734/0.118, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0003161/0.1184, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004172/0.1188, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 1.41e-05/0.1188, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/0.1191, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004728/0.1196, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.0009205/0.1205, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.828e-05/0.1205, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=186) (initialization): time 0.001914/0.1224, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 7.252e-05/0.1225, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.628e-05/0.1225, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.0006231/0.1231, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005816/0.1237, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003825/0.1276, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006256/0.1282, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.1283, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000484/0.1288, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000476/0.1293, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009167/0.1302, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.843e-05/0.1302, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=186) (initialization_lambda0): time 0.00188/0.1321, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 6.638e-05/0.1322, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/0.1322, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.0005822/0.1328, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005595/0.1333, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003918/0.1372, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006388/0.1379, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/0.138, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 46 (signalPWM.zeroOrderHold.firstTrigger,$PRE.signalPWM.zeroOrderHold.firstTrigger,meanCurrent.y_last,$PRE.meanCurrent.y_last,meanVoltage.y_last,$PRE.meanVoltage.y_last,$whenCondition4,$whenCondition3,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,dutyCycleTable.nextEventScaled,dutyCycleTable.nextEvent,$PRE.dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.b,dutyCycleTable.a,signalPWM.zeroOrderHold.ySample,$whenCondition2,torqueTable.nextEventScaled,torqueTable.nextEvent,$PRE.torqueTable.nextEvent,torqueTable.last,torqueTable.b,torqueTable.a,signalPWM.sawtooth.count,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.T_start,$PRE.signalPWM.zeroOrderHold.ySample,signalPWM.notFire,hbridge.inverter_n.diode_n.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_p.diode_n.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.andCondition_p.y,hbridge.andCondition_n.y,hbridge.andCondition_p.y,$whenCondition1,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004609/0.1385, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000203/0.1387, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001851/0.1405, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.1405, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1405, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.808e-05/0.1406, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003174/0.1437, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.1437, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003496/0.1441, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.0005662/0.1447, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.839e-05/0.1448, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0037/0.1485, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.1485, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001894/0.1504, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0005031/0.1509, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004445/0.1513, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004762/0.1518, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003641/0.1521, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-05/0.1522, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0005633/0.1528, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 4.813e-05/0.1528, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.003029/0.1559, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (meanCurrent.x,meanVoltage.x,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,signalPWM.notFire,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y_last,meanVoltage.y_last,torqueTable.a,torqueTable.b,torqueTable.last,torqueTable.nextEvent,torqueTable.nextEventScaled,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled) * Number of discrete states: 16 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,11), (4,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005667/0.1564, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.002795/0.1592, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.1592, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.0009804/0.1602, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001707/0.1619, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00391/0.1658, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.1662, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.0005352/0.1668, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008282/0.1676, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 5.617e-05/0.1677, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.004962/0.1726, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 879] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/HBridge/HBridge_DC_Drive/HBridge_DC_Drive.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 24.80509246326983]