Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) [: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 trunk/package.mo): time 0.001053/0.001053, allocations: 207.5 kB / 8.541 MB, free: 1.742 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.134/1.134, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008851/0.0008852, allocations: 96.23 kB / 286.3 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09285/0.09376, allocations: 56.91 MB / 343.2 MB, free: 8.574 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08249/0.1763, allocations: 51.48 MB / 394.7 MB, free: 5.039 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.228/0.4043, allocations: 107.2 MB / 0.4902 GB, free: 2.199 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/0.4046, allocations: 82.83 kB / 0.4903 GB, free: 2.156 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: 373 * Number of variables: 373 Notification: Performance of Generate backend data structure: time 0.09853/0.5031, allocations: 38.41 MB / 0.5278 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.5031, allocations: 8 kB / 0.5278 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007719/0.5039, allocations: 261.5 kB / 0.528 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002537/0.5065, allocations: 1.306 MB / 0.5293 GB, free: 15.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.539e-05/0.5065, allocations: 48 kB / 0.5293 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001794/0.5067, allocations: 95.91 kB / 0.5294 GB, free: 15.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001998/0.5087, allocations: 1.111 MB / 0.5305 GB, free: 13.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/0.5109, allocations: 1.338 MB / 0.5318 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.358e-05/0.511, allocations: 7.906 kB / 0.5318 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.5111, allocations: 4 kB / 0.5318 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-05/0.5111, allocations: 39.94 kB / 0.5319 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008499/0.5196, allocations: 6.17 MB / 0.5379 GB, free: 6.039 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009431/0.5206, allocations: 0.5697 MB / 0.5385 GB, free: 5.461 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008888/0.5215, allocations: 0.5431 MB / 0.539 GB, free: 4.914 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.007e-05/0.5216, allocations: 12.78 kB / 0.539 GB, free: 4.898 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008141/0.5224, allocations: 0.5278 MB / 0.5395 GB, free: 4.352 MB / 410.7 MB Notification: Performance of pre-optimization done (n=94): time 4.619e-06/0.5224, allocations: 0 / 0.5395 GB, free: 4.352 MB / 410.7 MB Notification: Performance of matching and sorting (n=97): time 0.003829/0.5263, allocations: 2.298 MB / 0.5418 GB, free: 1.969 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.354e-05/0.5264, allocations: 204.6 kB / 0.542 GB, free: 1.727 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001402/0.5278, allocations: 1.005 MB / 0.5429 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.313e-05/0.5279, allocations: 33.69 kB / 0.543 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004435/0.5283, allocations: 0.6036 MB / 0.5436 GB, free: 60 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002792/0.5286, allocations: 311.6 kB / 0.5439 GB, free: 15.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.683e-05/0.5287, allocations: 0 / 0.5439 GB, free: 15.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.5288, allocations: 357.8 kB / 0.5442 GB, free: 15.39 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006264/0.5294, allocations: 411.9 kB / 0.5446 GB, free: 14.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000879/0.5303, allocations: 0.8334 MB / 0.5454 GB, free: 13.97 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007408/0.5311, allocations: 0.4908 MB / 0.5459 GB, free: 13.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.5311, allocations: 4 kB / 0.5459 GB, free: 13.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.002259/0.5333, allocations: 1.454 MB / 0.5473 GB, free: 11.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001867/0.5352, allocations: 5.058 MB / 0.5522 GB, free: 6.543 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.5353, allocations: 15.98 kB / 0.5523 GB, free: 6.527 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006226/0.5359, allocations: 217.5 kB / 0.5525 GB, free: 6.309 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.5371, allocations: 303.6 kB / 0.5528 GB, free: 6.012 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003666/0.5407, allocations: 3.589 MB / 0.5563 GB, free: 2.195 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.542, allocations: 127.8 kB / 0.5564 GB, free: 2.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.235e-05/0.5421, allocations: 56.06 kB / 0.5564 GB, free: 2.016 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.9e-06/0.5421, allocations: 4 kB / 0.5564 GB, free: 2.012 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001927/0.544, allocations: 1.294 MB / 0.5577 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.5441, allocations: 16 kB / 0.5577 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005109/0.5446, allocations: 202 kB / 0.5579 GB, free: 488 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.5457, allocations: 307.5 kB / 0.5582 GB, free: 180 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003528/0.5492, allocations: 3.571 MB / 0.5617 GB, free: 12.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.5504, allocations: 123.9 kB / 0.5618 GB, free: 12.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-05/0.5505, allocations: 58.64 kB / 0.5619 GB, free: 12.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 29 ($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,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_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 (146): * Single equations (assignments): 144 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002479/0.5507, allocations: 176.1 kB / 0.562 GB, free: 12.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.5509, allocations: 138.3 kB / 0.5622 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/0.5529, allocations: 1.128 MB / 0.5633 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.5529, allocations: 12 kB / 0.5633 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.5529, allocations: 0 / 0.5633 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.5529, allocations: 7.969 kB / 0.5633 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003685/0.5566, allocations: 2.513 MB / 0.5657 GB, free: 8.105 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5566, allocations: 0 / 0.5657 GB, free: 8.105 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007864/0.5574, allocations: 164 kB / 0.5659 GB, free: 7.945 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005146/0.5579, allocations: 192.6 kB / 0.5661 GB, free: 7.754 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-05/0.558, allocations: 15.98 kB / 0.5661 GB, free: 7.738 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00344/0.5615, allocations: 3.536 MB / 0.5696 GB, free: 3.969 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.5615, allocations: 4 kB / 0.5696 GB, free: 3.965 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002318/0.5638, allocations: 1.786 MB / 0.5713 GB, free: 2.09 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1483/0.7121, allocations: 3.709 MB / 0.5749 GB, free: 82.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006714/0.7128, allocations: 309.2 kB / 0.5752 GB, free: 82.56 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002176/0.713, allocations: 15.81 kB / 0.5752 GB, free: 82.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009027/0.714, allocations: 102.2 kB / 0.5753 GB, free: 82.56 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.7141, allocations: 72.81 kB / 0.5754 GB, free: 82.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.823e-05/0.7142, allocations: 35.17 kB / 0.5754 GB, free: 82.56 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008804/0.7151, allocations: 0.7363 MB / 0.5762 GB, free: 82.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002974/0.718, allocations: 0.5579 MB / 0.5767 GB, free: 82.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twoPulse.filter[1].firstOrder.y,pulse2.twoPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twoPulse.filter[1].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.i) * Number of discrete variables: 20 (pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_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: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004009/0.7184, allocations: 309.6 kB / 0.577 GB, free: 82.36 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002631/0.7211, allocations: 2.191 MB / 0.5791 GB, free: 81.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.7211, allocations: 3.906 kB / 0.5791 GB, free: 81.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000899/0.722, allocations: 0.7742 MB / 0.5799 GB, free: 81.74 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.723, allocations: 244.9 kB / 0.5801 GB, free: 81.73 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004125/0.7272, allocations: 2.514 MB / 0.5826 GB, free: 81.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008947/0.7281, allocations: 1.464 MB / 0.584 GB, free: 80.38 MB / 442.7 MB Notification: Performance of SimCode: time 3e-07/0.7281, allocations: 0 / 0.584 GB, free: 80.38 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat