Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic.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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RLV_Characteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RLV_Characteristic",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 3.2.3+maint.om/package.mo): time 0.0009192/0.0009192, allocations: 180.5 kB / 8.481 MB, free: 1.871 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.062/1.062, allocations: 205.2 MB / 214.1 MB, free: 5.176 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.000838/0.000838, allocations: 87.33 kB / 262.1 MB, free: 5.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1561/0.1569, allocations: 52.99 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06436/0.2213, allocations: 47.58 MB / 362.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2234/0.4447, allocations: 90.28 MB / 452.9 MB, free: 8.902 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/0.4449, allocations: 86.66 kB / 453 MB, free: 8.887 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: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.0704/0.5154, allocations: 30.09 MB / 483.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.5154, allocations: 8 kB / 483.1 MB, free: 8.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004807/0.5159, allocations: 162.1 kB / 483.3 MB, free: 8.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003784/0.5197, allocations: 1.632 MB / 484.9 MB, free: 7.059 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.701e-05/0.5198, allocations: 55.92 kB / 485 MB, free: 7.008 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002783/0.5201, allocations: 79.91 kB / 485 MB, free: 6.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002264/0.5224, allocations: 1.317 MB / 486.4 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002497/0.5249, allocations: 1.537 MB / 487.9 MB, free: 4.977 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.442e-05/0.5249, allocations: 3.938 kB / 487.9 MB, free: 4.973 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.525, allocations: 4 kB / 487.9 MB, free: 4.969 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.806e-05/0.5251, allocations: 54.58 kB / 488 MB, free: 4.914 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007623/0.5327, allocations: 4.802 MB / 492.8 MB, free: 1.223 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.5344, allocations: 0.974 MB / 493.7 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007844/0.5352, allocations: 0.5711 MB / 494.3 MB, free: 136 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.949e-05/0.5352, allocations: 8.656 kB / 494.3 MB, free: 128 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008077/0.536, allocations: 0.5654 MB / 494.9 MB, free: 15.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=85): time 3.346e-06/0.5361, allocations: 0 / 494.9 MB, free: 15.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=85): time 0.001611/0.5377, allocations: 0.9513 MB / 495.8 MB, free: 14.6 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.17e-05/0.5378, allocations: 152.7 kB / 496 MB, free: 14.42 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009497/0.5387, allocations: 0.6792 MB / 496.7 MB, free: 13.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.92e-05/0.5388, allocations: 41.69 kB / 496.7 MB, free: 13.69 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003854/0.5392, allocations: 0.4941 MB / 497.2 MB, free: 13.19 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.5395, allocations: 232.4 kB / 497.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.811e-05/0.5395, allocations: 0 / 497.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.5397, allocations: 410.6 kB / 497.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005655/0.5403, allocations: 409.8 kB / 498.2 MB, free: 12.15 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000687/0.541, allocations: 0.6281 MB / 498.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005928/0.5416, allocations: 436.2 kB / 499.3 MB, free: 11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.5416, allocations: 0 / 499.3 MB, free: 11 MB / 346.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.001689/0.5433, allocations: 1.158 MB / 0.4887 GB, free: 9.832 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008257/0.5441, allocations: 2.52 MB / 0.4912 GB, free: 7.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.5442, allocations: 11.98 kB / 0.4912 GB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005085/0.5447, allocations: 220.7 kB / 0.4914 GB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006013/0.5453, allocations: 171.6 kB / 0.4915 GB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002709/0.548, allocations: 2.542 MB / 0.494 GB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007411/0.5488, allocations: 131.3 kB / 0.4942 GB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.696e-05/0.5488, allocations: 40 kB / 0.4942 GB, free: 3.895 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.613e-06/0.5489, allocations: 4 kB / 0.4942 GB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001428/0.5503, allocations: 1.029 MB / 0.4952 GB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.5503, allocations: 8 kB / 0.4952 GB, free: 2.852 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004195/0.5507, allocations: 223.1 kB / 0.4954 GB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005474/0.5513, allocations: 160.1 kB / 0.4956 GB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002511/0.5538, allocations: 2.548 MB / 0.4981 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006794/0.5545, allocations: 119.4 kB / 0.4982 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.884e-05/0.5546, allocations: 36 kB / 0.4982 GB, free: 15.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,$PRE.rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[1].off,$PRE.rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[2].off,$PRE.rectifier.thyristor.idealThyristor[3].off,rectifier.thyristor.idealThyristor[3].off,pulsem.twomPulse.positiveThreshold[1].y,pulsem.twomPulse.positiveThreshold[2].y,pulsem.twomPulse.positiveThreshold[3].y,pulsem.twomPulse.negativeThreshold[1].y,pulsem.twomPulse.negativeThreshold[2].y,pulsem.twomPulse.negativeThreshold[3].y,$PRE.pulsem.twomPulse.timerPositive[1].entryTime,pulsem.twomPulse.timerPositive[1].entryTime,$PRE.pulsem.twomPulse.timerPositive[2].entryTime,pulsem.twomPulse.timerPositive[2].entryTime,$PRE.pulsem.twomPulse.timerPositive[3].entryTime,pulsem.twomPulse.timerPositive[3].entryTime,$PRE.pulsem.twomPulse.timerNegative[1].entryTime,pulsem.twomPulse.timerNegative[1].entryTime,$PRE.pulsem.twomPulse.timerNegative[2].entryTime,pulsem.twomPulse.timerNegative[2].entryTime,$PRE.pulsem.twomPulse.timerNegative[3].entryTime,pulsem.twomPulse.timerNegative[3].entryTime,pulsem.fire_p[1],pulsem.fire_p[2],pulsem.fire_p[3],pulsem.fire_n[1],pulsem.fire_n[2],pulsem.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 107 * 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 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002279/0.5548, allocations: 168.8 kB / 0.4984 GB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.555, allocations: 86.97 kB / 0.4985 GB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000252/0.5553, allocations: 104.6 kB / 0.4986 GB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.5553, allocations: 8 kB / 0.4986 GB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.5553, allocations: 0 / 0.4986 GB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.5553, allocations: 3.984 kB / 0.4986 GB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003525/0.5588, allocations: 2.354 MB / 0.5009 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.5588, allocations: 0 / 0.5009 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004543/0.5593, allocations: 103.9 kB / 0.501 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003939/0.5597, allocations: 203.1 kB / 0.5012 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.033e-05/0.5598, allocations: 4 kB / 0.5012 GB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.5621, allocations: 2.478 MB / 0.5036 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5621, allocations: 0 / 0.5036 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002016/0.5641, allocations: 1.656 MB / 0.5052 GB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002853/0.567, allocations: 2.615 MB / 0.5078 GB, free: 5.648 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003926/0.5674, allocations: 255.9 kB / 0.508 GB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.5676, allocations: 19.89 kB / 0.508 GB, free: 5.359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005726/0.5681, allocations: 83.92 kB / 0.5081 GB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.5684, allocations: 88.64 kB / 0.5082 GB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.844e-05/0.5684, allocations: 35.98 kB / 0.5082 GB, free: 5.156 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0006475/0.5691, allocations: 0.4991 MB / 0.5087 GB, free: 4.656 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002513/0.5716, allocations: 0.5328 MB / 0.5092 GB, free: 4.121 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 36 (pulsem.twomPulse.negativeThreshold[2].y,pulsem.twomPulse.positiveThreshold[2].y,pulsem.twomPulse.negativeThreshold[1].y,pulsem.twomPulse.positiveThreshold[1].y,pulsem.twomPulse.negativeThreshold[3].y,pulsem.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulsem.twomPulse.timerPositive[1].entryTime,pulsem.twomPulse.timerPositive[2].entryTime,pulsem.twomPulse.timerPositive[3].entryTime,pulsem.twomPulse.timerNegative[1].entryTime,pulsem.twomPulse.timerNegative[2].entryTime,pulsem.twomPulse.timerNegative[3].entryTime,pulsem.fire_p[1],pulsem.fire_p[2],pulsem.fire_p[3],pulsem.fire_n[1],pulsem.fire_n[2],pulsem.fire_n[3]) * Number of discrete states: 6 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor.idealThyristor[3].off,rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002167/0.5718, allocations: 148.8 kB / 0.5094 GB, free: 3.969 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.5742, allocations: 1.806 MB / 0.5111 GB, free: 2.145 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5742, allocations: 4.25 kB / 0.5111 GB, free: 2.141 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008413/0.5751, allocations: 0.6682 MB / 0.5118 GB, free: 1.461 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007606/0.5758, allocations: 157.2 kB / 0.5119 GB, free: 1.309 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/0.5794, allocations: 2.016 MB / 0.5139 GB, free: 15.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00116/0.5806, allocations: 1.479 MB / 0.5153 GB, free: 13.74 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5806, allocations: 0 / 0.5153 GB, free: 13.74 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RLV_Characteristic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_RLV_Characteristic.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_RLV_Characteristic_res.mat does not exist to compare? outputFormat=mat