Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rectifier.thyristor_p1.off|rectifier.thyristor_p2.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rectifier.thyristor_p1.off|rectifier.thyristor_p2.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse") [: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 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 184.2 kB / 8.135 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.189/1.189, allocations: 221.4 MB / 229.9 MB, free: 3.082 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009178/0.0009179, allocations: 101.8 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.294e-05/1.298e-05, allocations: 4 kB / 336.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2521, allocations: 50.39 MB / 386.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09802/0.3501, allocations: 88.2 MB / 475.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.3504, allocations: 84.39 kB / 475.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.02789/0.3783, allocations: 11.05 MB / 486.3 MB, free: 3.531 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.973e-05/0.3784, allocations: 19.98 kB / 486.3 MB, free: 3.512 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.001407/0.3798, allocations: 0.8842 MB / 487.2 MB, free: 2.574 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.3799, allocations: 12.03 kB / 487.2 MB, free: 2.562 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.38, allocations: 94.89 kB / 487.3 MB, free: 2.469 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000736/0.3808, allocations: 0.4901 MB / 487.8 MB, free: 1.934 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.521e-05/0.3808, allocations: 31.98 kB / 487.8 MB, free: 1.902 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.703e-05/0.3809, allocations: 36 kB / 487.8 MB, free: 1.867 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008637/0.3818, allocations: 482.5 kB / 488.3 MB, free: 1.398 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009676/0.3827, allocations: 0.6067 MB / 488.9 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.3828, allocations: 5.031 kB / 488.9 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.287e-05/0.3828, allocations: 0 / 488.9 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.3829, allocations: 19.91 kB / 488.9 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003602/0.3865, allocations: 2.543 MB / 491.5 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000711/0.3872, allocations: 464.3 kB / 491.9 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003598/0.3876, allocations: 254.5 kB / 492.2 MB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.3876, allocations: 4.438 kB / 492.2 MB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004463/0.3881, allocations: 303.8 kB / 492.5 MB, free: 13.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 2.595e-06/0.3881, allocations: 0 / 492.5 MB, free: 13.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.0008728/0.389, allocations: 496.8 kB / 493 MB, free: 12.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.284e-05/0.389, allocations: 145.7 kB / 493.1 MB, free: 12.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004249/0.3895, allocations: 369 kB / 493.5 MB, free: 12.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.16e-05/0.3895, allocations: 33.7 kB / 493.5 MB, free: 11.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.3897, allocations: 264.1 kB / 493.7 MB, free: 11.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.3899, allocations: 161.7 kB / 493.9 MB, free: 11.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-05/0.3899, allocations: 0 / 493.9 MB, free: 11.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.39, allocations: 362.8 kB / 494.3 MB, free: 11.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.3903, allocations: 178.5 kB / 494.4 MB, free: 11.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004278/0.3908, allocations: 332.5 kB / 494.8 MB, free: 10.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.3911, allocations: 197.3 kB / 494.9 MB, free: 10.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3911, allocations: 0 / 494.9 MB, free: 10.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009609/0.3921, allocations: 0.5942 MB / 495.5 MB, free: 9.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005856/0.3927, allocations: 1.574 MB / 497.1 MB, free: 8.145 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3927, allocations: 4 kB / 497.1 MB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004738/0.3932, allocations: 140.8 kB / 497.3 MB, free: 8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003742/0.3935, allocations: 91.83 kB / 497.3 MB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002472/0.396, allocations: 2.069 MB / 499.4 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000481/0.3965, allocations: 79.66 kB / 499.5 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.052e-05/0.3966, allocations: 31.92 kB / 499.5 MB, free: 5.625 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.863e-06/0.3966, allocations: 4 kB / 499.5 MB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008603/0.3975, allocations: 0.5047 MB / 0.4883 GB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3975, allocations: 4 kB / 0.4883 GB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003782/0.3979, allocations: 144.7 kB / 0.4885 GB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.3982, allocations: 84.2 kB / 0.4885 GB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002301/0.4005, allocations: 2.064 MB / 0.4906 GB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004262/0.4009, allocations: 63.75 kB / 0.4906 GB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.401, allocations: 20 kB / 0.4906 GB, free: 2.621 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.000183/0.4012, allocations: 131.9 kB / 0.4908 GB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.752e-05/0.4013, allocations: 55.34 kB / 0.4908 GB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/0.4014, allocations: 61.27 kB / 0.4909 GB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.4014, allocations: 8 kB / 0.4909 GB, free: 2.367 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.4014, allocations: 4 kB / 0.4909 GB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.4015, allocations: 3.984 kB / 0.4909 GB, free: 2.359 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/0.4033, allocations: 1.227 MB / 0.4921 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.4033, allocations: 4.844 kB / 0.4921 GB, free: 1.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002392/0.4035, allocations: 44.02 kB / 0.4921 GB, free: 1.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003878/0.4039, allocations: 148.7 kB / 0.4923 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.404, allocations: 3.984 kB / 0.4923 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1093/0.5132, allocations: 2.027 MB / 0.4943 GB, free: 133.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.5133, allocations: 3.828 kB / 0.4943 GB, free: 133.1 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001162/0.5144, allocations: 0.8582 MB / 0.4951 GB, free: 133 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.5147, allocations: 183.5 kB / 0.4953 GB, free: 132.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.731e-05/0.5148, allocations: 0 / 0.4953 GB, free: 132.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003684/0.5152, allocations: 44.11 kB / 0.4953 GB, free: 132.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.5153, allocations: 42.27 kB / 0.4954 GB, free: 132.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.5154, allocations: 15 kB / 0.4954 GB, free: 132.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002921/0.5157, allocations: 276.7 kB / 0.4956 GB, free: 132.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008168/0.5165, allocations: 300.8 kB / 0.4959 GB, free: 132.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002103/0.5167, allocations: 136 kB / 0.496 GB, free: 132.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.5181, allocations: 1.033 MB / 0.4971 GB, free: 132.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5181, allocations: 7.156 kB / 0.4971 GB, free: 132.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004523/0.5186, allocations: 387.8 kB / 0.4974 GB, free: 132.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004802/0.5191, allocations: 81.25 kB / 0.4975 GB, free: 132.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.5209, allocations: 0.8995 MB / 0.4984 GB, free: 132.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004268/0.5214, allocations: 0.9833 MB / 0.4993 GB, free: 131.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5214, allocations: 0 / 0.4993 GB, free: 131.5 MB / 378.7 MB Notification: Performance of Templates: time 0.01665/0.538, allocations: 11.38 MB / 0.5105 GB, free: 131.2 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/ACDC/RectifierBridge2Pulse/HalfControlledBridge2Pulse/HalfControlledBridge2Pulse.csv","../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches