Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") [:1:1-1:32: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/Complex 3.2.3+maint.om/package.mo): time 0.00156/0.00156, allocations: 186.7 kB / 8.479 MB, free: 1.734 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.167/1.167, allocations: 205.2 MB / 214.1 MB, free: 5.086 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008618/0.0008619, allocations: 95.64 kB / 262.1 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.161e-06/6.171e-06, allocations: 4 kB / 315 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06846/0.06848, allocations: 47.58 MB / 362.6 MB, free: 9.93 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.23/0.2986, allocations: 82.52 MB / 445.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.2988, allocations: 87.36 kB / 445.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01654/0.3154, allocations: 6.681 MB / 451.8 MB, free: 8.465 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.321e-05/0.3155, allocations: 7.812 kB / 451.9 MB, free: 8.465 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.0009431/0.3164, allocations: 0.6854 MB / 452.5 MB, free: 7.906 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.3164, allocations: 15.5 kB / 452.6 MB, free: 7.902 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.046e-05/0.3165, allocations: 50.38 kB / 452.6 MB, free: 7.879 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004377/0.317, allocations: 365 kB / 453 MB, free: 7.598 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.317, allocations: 11.69 kB / 453 MB, free: 7.598 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.232e-05/0.3171, allocations: 30.47 kB / 453 MB, free: 7.594 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004324/0.3175, allocations: 237.9 kB / 453.2 MB, free: 7.582 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004969/0.318, allocations: 354.3 kB / 453.6 MB, free: 7.453 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.318, allocations: 3.844 kB / 453.6 MB, free: 7.453 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.678e-05/0.3181, allocations: 3.984 kB / 453.6 MB, free: 7.449 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.3181, allocations: 15.16 kB / 453.6 MB, free: 7.445 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001794/0.3199, allocations: 1.496 MB / 455.1 MB, free: 6.469 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.3202, allocations: 228.9 kB / 455.3 MB, free: 6.426 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.3205, allocations: 137.8 kB / 455.5 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.3205, allocations: 3.719 kB / 455.5 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.3207, allocations: 187.2 kB / 455.6 MB, free: 6.309 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.796e-06/0.3208, allocations: 0 / 455.6 MB, free: 6.309 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.0004577/0.3212, allocations: 269.2 kB / 455.9 MB, free: 6.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.3213, allocations: 139.3 kB / 456 MB, free: 6.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/0.3215, allocations: 252.4 kB / 456.3 MB, free: 5.953 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.3215, allocations: 32.8 kB / 456.3 MB, free: 5.922 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.3216, allocations: 187 kB / 456.5 MB, free: 5.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.592e-05/0.3217, allocations: 98.94 kB / 456.6 MB, free: 5.699 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.691e-05/0.3217, allocations: 7.656 kB / 456.6 MB, free: 5.695 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.019e-05/0.3218, allocations: 342.8 kB / 456.9 MB, free: 5.371 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.3219, allocations: 82.66 kB / 457 MB, free: 5.371 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.3221, allocations: 216.6 kB / 457.2 MB, free: 5.203 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.3223, allocations: 104.6 kB / 457.3 MB, free: 5.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3223, allocations: 3.844 kB / 457.3 MB, free: 5.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004831/0.3227, allocations: 349.5 kB / 457.7 MB, free: 5.078 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002193/0.323, allocations: 1.393 MB / 459.1 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.323, allocations: 3.844 kB / 459.1 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002948/0.3233, allocations: 82.59 kB / 459.2 MB, free: 3.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.3235, allocations: 58.69 kB / 459.2 MB, free: 3.574 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.3249, allocations: 1.604 MB / 460.8 MB, free: 2.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003473/0.3252, allocations: 60.25 kB / 460.9 MB, free: 2.262 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/0.3253, allocations: 17.78 kB / 460.9 MB, free: 2.262 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.851e-06/0.3253, allocations: 7.75 kB / 460.9 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004296/0.3257, allocations: 284.9 kB / 461.2 MB, free: 2.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3257, allocations: 7.781 kB / 461.2 MB, free: 2.203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002078/0.3259, allocations: 86.88 kB / 461.3 MB, free: 2.176 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.3261, allocations: 49.42 kB / 461.3 MB, free: 2.164 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00155/0.3277, allocations: 1.708 MB / 463 MB, free: 16.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.328, allocations: 39.55 kB / 463.1 MB, free: 16.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.328, allocations: 15.31 kB / 463.1 MB, free: 16.78 MB / 330.7 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 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001492/0.3282, allocations: 144 kB / 463.2 MB, free: 16.64 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.923e-05/0.3283, allocations: 32.94 kB / 463.3 MB, free: 16.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.944e-05/0.3283, allocations: 32.59 kB / 463.3 MB, free: 16.62 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.3284, allocations: 3.969 kB / 463.3 MB, free: 16.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.3284, allocations: 0 / 463.3 MB, free: 16.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.3284, allocations: 1.312 kB / 463.3 MB, free: 16.62 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.3295, allocations: 0.865 MB / 464.2 MB, free: 16.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3295, allocations: 3.906 kB / 464.2 MB, free: 16.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001538/0.3297, allocations: 32.33 kB / 464.2 MB, free: 16.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002057/0.3299, allocations: 70.66 kB / 464.3 MB, free: 16.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.3299, allocations: 1.281 kB / 464.3 MB, free: 16.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.3313, allocations: 1.551 MB / 465.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3313, allocations: 1.594 kB / 465.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006114/0.3319, allocations: 0.4952 MB / 466.3 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.332, allocations: 145.4 kB / 466.5 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.79e-05/0.3321, allocations: 2.656 kB / 466.5 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.3324, allocations: 34.42 kB / 466.5 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.321e-05/0.3325, allocations: 31.39 kB / 466.5 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.3325, allocations: 10.69 kB / 466.5 MB, free: 14.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001695/0.3327, allocations: 196.6 kB / 466.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007556/0.3335, allocations: 185 kB / 466.9 MB, free: 14.3 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y,meanVoltage.y) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001833/0.3337, allocations: 124.9 kB / 467 MB, free: 14.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.3347, allocations: 0.6852 MB / 467.7 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3347, allocations: 1.031 kB / 467.7 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003336/0.3351, allocations: 243 kB / 467.9 MB, free: 13.76 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.3354, allocations: 52.16 kB / 468 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/0.3368, allocations: 0.5209 MB / 468.5 MB, free: 13.49 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004391/0.3373, allocations: 0.8541 MB / 469.4 MB, free: 12.72 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3373, allocations: 0 / 469.4 MB, free: 12.72 MB / 330.7 MB Notification: Performance of Templates: time 0.01199/0.3493, allocations: 6.697 MB / 476.1 MB, free: 9.43 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & ./Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/PowerConverters/Examples/DCDC/ChopperStepDown/ChopperStepDown_R/ChopperStepDown_R.csv","../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches