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_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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_R",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.0009787/0.0009787, allocations: 179.8 kB / 8.477 MB, free: 1.887 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.047/1.047, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.0009136/0.0009136, allocations: 86.83 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1506/0.1515, allocations: 52.99 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06078/0.2123, allocations: 47.57 MB / 362.7 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1973/0.4096, allocations: 89.52 MB / 452.2 MB, free: 9.172 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.4099, allocations: 86.22 kB / 452.3 MB, free: 9.156 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: 319 * Number of variables: 319 Notification: Performance of Generate backend data structure: time 0.06584/0.4757, allocations: 29.29 MB / 481.6 MB, free: 9.773 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.4758, allocations: 12 kB / 481.6 MB, free: 9.762 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003353/0.4761, allocations: 154.1 kB / 481.7 MB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003482/0.4796, allocations: 1.608 MB / 483.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.472e-05/0.4797, allocations: 51.61 kB / 483.4 MB, free: 8.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000196/0.4799, allocations: 75.91 kB / 483.4 MB, free: 8.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002017/0.4819, allocations: 1.289 MB / 484.7 MB, free: 7.453 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/0.4841, allocations: 1.504 MB / 486.2 MB, free: 6.332 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.089e-05/0.4841, allocations: 4 kB / 486.2 MB, free: 6.328 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/0.4843, allocations: 7.547 kB / 486.3 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.629e-05/0.4843, allocations: 50.48 kB / 486.3 MB, free: 6.273 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00641/0.4907, allocations: 4.649 MB / 491 MB, free: 2.711 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.4918, allocations: 0.8284 MB / 491.8 MB, free: 2.141 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007607/0.4926, allocations: 0.5552 MB / 492.3 MB, free: 1.754 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.471e-05/0.4926, allocations: 4.656 kB / 492.3 MB, free: 1.746 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000759/0.4934, allocations: 0.5346 MB / 492.9 MB, free: 1.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=79): time 3.116e-06/0.4934, allocations: 0 / 492.9 MB, free: 1.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=79): time 0.001471/0.4949, allocations: 0.9246 MB / 493.8 MB, free: 436 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.495, allocations: 153.2 kB / 493.9 MB, free: 252 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008566/0.4958, allocations: 0.683 MB / 494.6 MB, free: 15.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.656e-05/0.4959, allocations: 49.72 kB / 494.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003151/0.4963, allocations: 482.4 kB / 495.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/0.4964, allocations: 220.6 kB / 495.4 MB, free: 14.81 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.765e-05/0.4965, allocations: 0 / 495.4 MB, free: 14.81 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.4967, allocations: 398.7 kB / 495.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007378/0.4975, allocations: 397.8 kB / 496.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006498/0.4981, allocations: 0.6125 MB / 496.8 MB, free: 13.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000553/0.4987, allocations: 440.1 kB / 497.2 MB, free: 12.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.4987, allocations: 0 / 497.2 MB, free: 12.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.00155/0.5003, allocations: 1.135 MB / 498.3 MB, free: 11.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007397/0.501, allocations: 2.528 MB / 0.4891 GB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.501, allocations: 8 kB / 0.4891 GB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005077/0.5015, allocations: 232.6 kB / 0.4893 GB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004996/0.5021, allocations: 147.7 kB / 0.4895 GB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.5049, allocations: 2.657 MB / 0.4921 GB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006997/0.5056, allocations: 147.3 kB / 0.4922 GB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.932e-05/0.5057, allocations: 35.98 kB / 0.4922 GB, free: 5.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.412e-06/0.5057, allocations: 4 kB / 0.4923 GB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001376/0.5071, allocations: 1.009 MB / 0.4932 GB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.5071, allocations: 4 kB / 0.4932 GB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004543/0.5076, allocations: 237.5 kB / 0.4935 GB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004724/0.5081, allocations: 139.8 kB / 0.4936 GB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002716/0.5108, allocations: 2.662 MB / 0.4962 GB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006968/0.5115, allocations: 119.5 kB / 0.4963 GB, free: 1.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.239e-05/0.5116, allocations: 36 kB / 0.4963 GB, free: 1.359 MB / 346.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 (101): * Single equations (assignments): 100 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002404/0.5118, allocations: 172.8 kB / 0.4965 GB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/0.512, allocations: 82.97 kB / 0.4966 GB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002408/0.5123, allocations: 100.4 kB / 0.4967 GB, free: 1.008 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.5123, allocations: 11.91 kB / 0.4967 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.5123, allocations: 0 / 0.4967 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/0.5123, allocations: 3.984 kB / 0.4967 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003916/0.5162, allocations: 2.398 MB / 0.499 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.5163, allocations: 0 / 0.499 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000333/0.5166, allocations: 71.84 kB / 0.4991 GB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004296/0.517, allocations: 208.7 kB / 0.4993 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.856e-05/0.5171, allocations: 8.031 kB / 0.4993 GB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002361/0.5195, allocations: 2.399 MB / 0.5017 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.5195, allocations: 3.938 kB / 0.5017 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002123/0.5216, allocations: 1.613 MB / 0.5032 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002849/0.5245, allocations: 2.539 MB / 0.5057 GB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004261/0.5249, allocations: 259.8 kB / 0.506 GB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.5251, allocations: 8 kB / 0.506 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005355/0.5256, allocations: 79.92 kB / 0.5061 GB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.5258, allocations: 84.52 kB / 0.5061 GB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.115e-05/0.5259, allocations: 28 kB / 0.5062 GB, free: 7.078 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0006613/0.5265, allocations: 0.5069 MB / 0.5067 GB, free: 6.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002694/0.5292, allocations: 0.5213 MB / 0.5072 GB, free: 6.047 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * 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 (66): * Single equations (assignments): 56 * 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 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002231/0.5295, allocations: 136.7 kB / 0.5073 GB, free: 5.902 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.5318, allocations: 1.779 MB / 0.509 GB, free: 4.105 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.5318, allocations: 0 / 0.509 GB, free: 4.105 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007517/0.5326, allocations: 0.6188 MB / 0.5096 GB, free: 3.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007452/0.5334, allocations: 173 kB / 0.5098 GB, free: 3.312 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003307/0.5367, allocations: 1.888 MB / 0.5116 GB, free: 1.387 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001082/0.5378, allocations: 1.447 MB / 0.5131 GB, free: 15.91 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5378, allocations: 0 / 0.5131 GB, free: 15.91 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_ThyristorCenterTapmPulse_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R.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_R_res.mat does not exist to compare? outputFormat=mat