Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R.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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_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 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 183.7 kB / 8.138 MB, free: 2.188 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.091/1.091, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009038/0.0009036, allocations: 93.66 kB / 280.8 MB, free: 1.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09109/0.09202, allocations: 55.84 MB / 336.6 MB, free: 9.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.2696, allocations: 50.39 MB / 387 MB, free: 38.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08516/0.3548, allocations: 87.63 MB / 474.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.3551, allocations: 91.88 kB / 474.7 MB, free: 15.1 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.03584/0.391, allocations: 13.92 MB / 488.7 MB, free: 1.121 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.391, allocations: 8 kB / 488.7 MB, free: 1.113 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001913/0.3912, allocations: 82.97 kB / 488.7 MB, free: 1.031 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008079/0.392, allocations: 486 kB / 489.2 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.836e-05/0.3921, allocations: 20 kB / 489.2 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.352e-05/0.3922, allocations: 40 kB / 489.3 MB, free: 468 kB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007758/0.393, allocations: 418.5 kB / 489.7 MB, free: 48 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000941/0.3939, allocations: 0.5465 MB / 490.2 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.3939, allocations: 0 / 490.2 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.365e-05/0.394, allocations: 11.92 kB / 490.2 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.394, allocations: 19.91 kB / 490.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003221/0.3972, allocations: 2.16 MB / 492.4 MB, free: 13.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.3978, allocations: 362.5 kB / 492.8 MB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004422/0.3982, allocations: 249.4 kB / 493 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.173e-05/0.3983, allocations: 4 kB / 493 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004039/0.3987, allocations: 272.5 kB / 493.3 MB, free: 12.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 2.144e-06/0.3987, allocations: 0 / 493.3 MB, free: 12.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007686/0.3995, allocations: 401.8 kB / 493.7 MB, free: 11.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.053e-05/0.3996, allocations: 166.2 kB / 493.8 MB, free: 11.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004589/0.4, allocations: 361 kB / 494.2 MB, free: 11.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.869e-05/0.4001, allocations: 29.7 kB / 494.2 MB, free: 11.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.4003, allocations: 260.2 kB / 494.5 MB, free: 11.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.4004, allocations: 134.2 kB / 494.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.188e-05/0.4005, allocations: 0 / 494.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.4006, allocations: 358.8 kB / 495 MB, free: 10.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002497/0.4009, allocations: 145.3 kB / 495.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003477/0.4012, allocations: 308.6 kB / 495.4 MB, free: 10.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.4015, allocations: 179.7 kB / 495.6 MB, free: 9.859 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4015, allocations: 0 / 495.6 MB, free: 9.859 MB / 378.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008376/0.4024, allocations: 0.4975 MB / 496.1 MB, free: 9.352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005804/0.403, allocations: 1.655 MB / 497.7 MB, free: 7.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.403, allocations: 4 kB / 497.7 MB, free: 7.562 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003359/0.4033, allocations: 96.77 kB / 497.8 MB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003707/0.4037, allocations: 87.89 kB / 497.9 MB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/0.4054, allocations: 1.655 MB / 499.6 MB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004492/0.4059, allocations: 79.7 kB / 499.7 MB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.502e-05/0.4059, allocations: 24 kB / 499.7 MB, free: 5.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.973e-06/0.4059, allocations: 4 kB / 499.7 MB, free: 5.496 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006966/0.4066, allocations: 440.5 kB / 0.4884 GB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.4066, allocations: 4 kB / 0.4884 GB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000236/0.4069, allocations: 84.81 kB / 0.4885 GB, free: 4.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002867/0.4072, allocations: 79.84 kB / 0.4886 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/0.4088, allocations: 1.667 MB / 0.4902 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003879/0.4092, allocations: 59.72 kB / 0.4902 GB, free: 3.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.383e-05/0.4092, allocations: 20 kB / 0.4903 GB, free: 3.039 MB / 378.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: 25 ($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_p.off,rectifier.thyristor_p.off,$PRE.rectifier.thyristor_n.off,rectifier.thyristor_n.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 (58): * Single equations (assignments): 57 * 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 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.4094, allocations: 132 kB / 0.4904 GB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.335e-05/0.4095, allocations: 55.33 kB / 0.4904 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.4096, allocations: 53.03 kB / 0.4905 GB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.4096, allocations: 4 kB / 0.4905 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.4096, allocations: 0 / 0.4905 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.4096, allocations: 7.984 kB / 0.4905 GB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/0.4114, allocations: 1.154 MB / 0.4916 GB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4114, allocations: 0 / 0.4916 GB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002478/0.4116, allocations: 43.92 kB / 0.4917 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002525/0.4119, allocations: 80.81 kB / 0.4917 GB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.4119, allocations: 12.02 kB / 0.4918 GB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1019/0.5139, allocations: 1.631 MB / 0.4933 GB, free: 130.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5139, allocations: 2.375 kB / 0.4933 GB, free: 130.5 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009236/0.5149, allocations: 0.7265 MB / 0.4941 GB, free: 130.3 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001061/0.5159, allocations: 1.308 MB / 0.4953 GB, free: 129.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001921/0.5161, allocations: 170.4 kB / 0.4955 GB, free: 129.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.913e-05/0.5162, allocations: 7.578 kB / 0.4955 GB, free: 129.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003551/0.5166, allocations: 42.94 kB / 0.4955 GB, free: 129.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.197e-05/0.5167, allocations: 33.62 kB / 0.4956 GB, free: 129.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.5167, allocations: 16.19 kB / 0.4956 GB, free: 129.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002551/0.517, allocations: 268.8 kB / 0.4958 GB, free: 129.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001847/0.5188, allocations: 257.4 kB / 0.4961 GB, free: 129.6 MB / 378.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: 18 (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_p.off,rectifier.thyristor_n.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_n.off,rectifier.thyristor_p.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001572/0.519, allocations: 130.2 kB / 0.4962 GB, free: 129.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.5201, allocations: 0.8726 MB / 0.4971 GB, free: 129.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5201, allocations: 6.531 kB / 0.4971 GB, free: 129.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003596/0.5205, allocations: 322.8 kB / 0.4974 GB, free: 129.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004077/0.5209, allocations: 67.59 kB / 0.4974 GB, free: 129.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.5224, allocations: 0.7961 MB / 0.4982 GB, free: 128.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004009/0.5228, allocations: 0.9625 MB / 0.4992 GB, free: 128.2 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5228, allocations: 3.719 kB / 0.4992 GB, free: 128.2 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_R_res.mat does not exist to compare? outputFormat=mat