Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_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.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 110.3 kB / 17.75 MB, free: 5.355 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.001484/0.001485, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.331/1.331, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009132/0.0009133, allocations: 51.92 kB / 352 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2113, allocations: 49.43 MB / 401.5 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.004849/0.2162, allocations: 4.018 MB / 405.5 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.2178, allocations: 1.013 MB / 406.5 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.218, allocations: 11.94 kB / 406.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.2182, allocations: 99.02 kB / 406.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002577/0.2185, allocations: 150.6 kB / 406.8 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005042/0.219, allocations: 235.6 kB / 407 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006205/0.2196, allocations: 0.6932 MB / 407.7 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003747/0.22, allocations: 256.2 kB / 407.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000246/0.2203, allocations: 259 kB / 408.2 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002931/0.2206, allocations: 286.7 kB / 408.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.302e-05/0.2207, allocations: 71.94 kB / 408.5 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.598e-05/0.2208, allocations: 64 kB / 408.6 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.2209, allocations: 135.5 kB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002643/0.2212, allocations: 318.4 kB / 409 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000609/0.2218, allocations: 0.7095 MB / 409.7 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2218, allocations: 0 / 409.7 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2218, allocations: 0 / 409.7 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.2218, allocations: 0 / 409.7 MB, free: 0.5469 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001571/0.2234, allocations: 0.9145 MB / 410.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.2234, allocations: 8.031 kB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.2236, allocations: 72.19 kB / 410.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000575/0.2241, allocations: 420.5 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.2242, allocations: 37.38 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.833e-05/0.2243, allocations: 56.28 kB / 411.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009362/0.2252, allocations: 0.5282 MB / 411.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.2253, allocations: 0 / 411.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.044e-05/0.2253, allocations: 20 kB / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.2253, allocations: 12 kB / 411.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008282/0.2262, allocations: 379.7 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.2286, allocations: 1.803 MB / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009956/0.2297, allocations: 395.5 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005728/0.2302, allocations: 261.1 kB / 414.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.2303, allocations: 12.31 kB / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005538/0.2308, allocations: 281.1 kB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.914e-06/0.2309, allocations: 4 kB / 414.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.001783/0.2326, allocations: 0.7134 MB / 415.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.2327, allocations: 110.8 kB / 415.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.2331, allocations: 393.5 kB / 416.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/0.2332, allocations: 33.7 kB / 416.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.2333, allocations: 253 kB / 416.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.2334, allocations: 134.1 kB / 416.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.2336, allocations: 98.14 kB / 416.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2337, allocations: 354.8 kB / 417 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/0.2341, allocations: 155 kB / 417.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004233/0.2345, allocations: 277.3 kB / 417.4 MB, free: 8.508 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007344/0.2353, allocations: 441.8 kB / 417.8 MB, free: 8.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2353, allocations: 0 / 417.8 MB, free: 8.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001019/0.2363, allocations: 0.5499 MB / 418.4 MB, free: 7.453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/0.2364, allocations: 29.7 kB / 418.4 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2364, allocations: 11.88 kB / 418.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002587/0.2366, allocations: 77.25 kB / 418.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.237, allocations: 91.83 kB / 418.6 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.2387, allocations: 1.9 MB / 420.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003538/0.2391, allocations: 59.52 kB / 420.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.2391, allocations: 23.98 kB / 420.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004397/0.2396, allocations: 257.3 kB / 420.8 MB, free: 4.855 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003815/0.24, allocations: 276.9 kB / 421.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006425/0.2406, allocations: 416.5 kB / 421.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.717e-06/0.2406, allocations: 0 / 421.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization_lambda0): time 0.0009188/0.2416, allocations: 0.5267 MB / 422 MB, free: 3.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.2416, allocations: 33.7 kB / 422 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2416, allocations: 4 kB / 422.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002051/0.2418, allocations: 72.81 kB / 422.1 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003181/0.2422, allocations: 88.05 kB / 422.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/0.2438, allocations: 1.887 MB / 424.1 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003472/0.2441, allocations: 55.66 kB / 424.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.101e-05/0.2442, allocations: 19.94 kB / 424.2 MB, free: 1.227 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 21 (signalPWM.zeroOrderHold.firstTrigger,$PRE.signalPWM.zeroOrderHold.firstTrigger,meanCurrent.y_last,$PRE.meanCurrent.y_last,meanVoltage.y_last,$PRE.meanVoltage.y_last,$whenCondition2,$whenCondition1,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,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,chopperStepDown.diode.off,chopperStepDown.transistor.off,chopperStepDown.andCondition_p.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 52 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001624/0.2443, allocations: 230.5 kB / 424.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.356e-05/0.2444, allocations: 47.5 kB / 424.4 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/0.2455, allocations: 490.1 kB / 424.9 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.2455, allocations: 3.984 kB / 424.9 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2455, allocations: 4 kB / 424.9 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.2457, allocations: 152.5 kB / 425.1 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.894e-05/0.2458, allocations: 15.98 kB / 425.1 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002984/0.2461, allocations: 31.91 kB / 425.1 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.782e-05/0.2462, allocations: 31.95 kB / 425.2 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001382/0.2476, allocations: 0.5672 MB / 425.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001235/0.2488, allocations: 0.7694 MB / 426.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003417/0.2492, allocations: 163.9 kB / 426.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002622/0.2494, allocations: 263.3 kB / 426.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of Backend: time 5.01e-07/0.2494, allocations: 3.938 kB / 426.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.2511, allocations: 0.9445 MB / 427.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of SimCode: time 0.001795/0.2529, allocations: 1.517 MB / 429.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of Templates: time 0.01357/0.2665, allocations: 8.411 MB / 437.8 MB, free: 3.562 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/ChopperStepDown/ChopperStepDown_RL/ChopperStepDown_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches