Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_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.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_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.001202/0.001202, allocations: 183.4 kB / 8.475 MB, free: 1.879 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.054/1.054, allocations: 205.2 MB / 214.1 MB, free: 5.18 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.0009088/0.0009088, allocations: 82.31 kB / 262.1 MB, free: 5.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1424/0.1433, allocations: 52.99 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06173/0.2051, allocations: 47.58 MB / 362.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1976/0.4027, allocations: 83.68 MB / 446.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000187/0.403, allocations: 76.33 kB / 446.4 MB, free: 10.62 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: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.02143/0.4244, allocations: 9.987 MB / 456.4 MB, free: 6.582 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.4244, allocations: 10.91 kB / 456.4 MB, free: 6.582 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.595e-05/0.4245, allocations: 54.09 kB / 456.5 MB, free: 6.555 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004281/0.425, allocations: 370.9 kB / 456.8 MB, free: 6.277 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.425, allocations: 11.22 kB / 456.8 MB, free: 6.277 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.116e-05/0.4251, allocations: 30.62 kB / 456.9 MB, free: 6.273 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004295/0.4255, allocations: 272.4 kB / 457.1 MB, free: 6.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005377/0.426, allocations: 374.5 kB / 457.5 MB, free: 6.133 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.4261, allocations: 8.812 kB / 457.5 MB, free: 6.129 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.4261, allocations: 0 / 457.5 MB, free: 6.129 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.4261, allocations: 14.34 kB / 457.5 MB, free: 6.125 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.428, allocations: 1.469 MB / 459 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.4283, allocations: 209.6 kB / 459.2 MB, free: 5.199 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.4284, allocations: 85.19 kB / 459.3 MB, free: 5.188 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.4285, allocations: 6.594 kB / 459.3 MB, free: 5.184 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.4287, allocations: 186.8 kB / 459.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 1.403e-06/0.4287, allocations: 0 / 459.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004764/0.4292, allocations: 263.1 kB / 459.7 MB, free: 4.988 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.4292, allocations: 112.9 kB / 459.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.4295, allocations: 276.2 kB / 460.1 MB, free: 4.742 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.4295, allocations: 34.77 kB / 460.1 MB, free: 4.707 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.517e-05/0.4296, allocations: 208.8 kB / 460.3 MB, free: 4.535 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.991e-05/0.4297, allocations: 85.39 kB / 460.4 MB, free: 4.477 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.585e-05/0.4297, allocations: 1.25 kB / 460.4 MB, free: 4.477 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.274e-05/0.4298, allocations: 347.9 kB / 460.8 MB, free: 4.148 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.4299, allocations: 97.02 kB / 460.9 MB, free: 4.145 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.4301, allocations: 238.1 kB / 461.1 MB, free: 3.949 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.4303, allocations: 110.5 kB / 461.2 MB, free: 3.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.4303, allocations: 5.422 kB / 461.2 MB, free: 3.926 MB / 314.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000501/0.4308, allocations: 370.8 kB / 461.6 MB, free: 3.805 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002359/0.431, allocations: 1.656 MB / 463.2 MB, free: 2.062 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.4311, allocations: 6.953 kB / 463.2 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.4312, allocations: 44.75 kB / 463.3 MB, free: 2.047 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.4315, allocations: 70.81 kB / 463.3 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008544/0.4324, allocations: 1.34 MB / 464.7 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003423/0.4327, allocations: 74.83 kB / 464.8 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.4328, allocations: 14.28 kB / 464.8 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.552e-06/0.4328, allocations: 4.125 kB / 464.8 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004364/0.4332, allocations: 293.2 kB / 465.1 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.4332, allocations: 4.469 kB / 465.1 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001109/0.4333, allocations: 40.94 kB / 465.1 MB, free: 0.668 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.4336, allocations: 64.97 kB / 465.2 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008513/0.4344, allocations: 1.347 MB / 466.5 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003037/0.4347, allocations: 56.38 kB / 466.6 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.4348, allocations: 17.38 kB / 466.6 MB, free: 15.38 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,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_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.4349, allocations: 133.4 kB / 466.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.246e-05/0.435, allocations: 35.91 kB / 466.8 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.955e-05/0.4351, allocations: 33.25 kB / 466.8 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.4351, allocations: 3.281 kB / 466.8 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.4351, allocations: 0.5 kB / 466.8 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4351, allocations: 4.484 kB / 466.8 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009889/0.4361, allocations: 0.7301 MB / 467.5 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4361, allocations: 0 / 467.5 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.4363, allocations: 22.27 kB / 467.5 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000116/0.4364, allocations: 37.22 kB / 467.6 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.4364, allocations: 9.281 kB / 467.6 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009632/0.4374, allocations: 1.336 MB / 468.9 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4374, allocations: 0 / 468.9 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006009/0.438, allocations: 478.2 kB / 469.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008276/0.4388, allocations: 0.9586 MB / 470.4 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.439, allocations: 134.3 kB / 470.5 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.969e-05/0.4391, allocations: 5.094 kB / 470.5 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002691/0.4393, allocations: 34.97 kB / 470.5 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.084e-05/0.4394, allocations: 24.17 kB / 470.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.4394, allocations: 10.12 kB / 470.6 MB, free: 12.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001967/0.4396, allocations: 206.5 kB / 470.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001778/0.4414, allocations: 181.5 kB / 470.9 MB, free: 12.46 MB / 330.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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 19 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001576/0.4416, allocations: 119.1 kB / 471 MB, free: 12.36 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000835/0.4424, allocations: 0.6257 MB / 471.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4424, allocations: 0 / 471.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002557/0.4427, allocations: 223.5 kB / 471.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.443, allocations: 38.62 kB / 471.9 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.4443, allocations: 0.5593 MB / 472.5 MB, free: 11.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004492/0.4447, allocations: 0.8738 MB / 473.4 MB, free: 10.94 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4447, allocations: 1.594 kB / 473.4 MB, free: 10.94 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat