Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.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.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV",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.0009601/0.0009601, allocations: 180.5 kB / 8.133 MB, free: 2.215 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.144/1.144, allocations: 221.4 MB / 229.9 MB, free: 3.344 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.0009412/0.0009412, allocations: 95.16 kB / 280.8 MB, free: 1.332 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08926/0.09023, allocations: 55.84 MB / 336.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.2674, allocations: 50.39 MB / 387 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08638/0.3538, allocations: 88.75 MB / 475.8 MB, free: 14.01 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/0.3541, allocations: 80.86 kB / 475.8 MB, free: 13.93 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: 175 * Number of variables: 175 Notification: Performance of Generate backend data structure: time 0.04036/0.3945, allocations: 15.62 MB / 491.5 MB, free: 14.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.3945, allocations: 8 kB / 491.5 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002129/0.3947, allocations: 90.88 kB / 491.6 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008973/0.3956, allocations: 0.5103 MB / 492.1 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.3957, allocations: 27.91 kB / 492.1 MB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.837e-05/0.3958, allocations: 44 kB / 492.1 MB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009467/0.3968, allocations: 0.4998 MB / 492.6 MB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.3978, allocations: 0.6545 MB / 493.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.3979, allocations: 0 / 493.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.857e-05/0.3979, allocations: 0 / 493.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.398, allocations: 16 kB / 493.3 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003854/0.4018, allocations: 2.643 MB / 496 MB, free: 9.574 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006595/0.4025, allocations: 481 kB / 496.4 MB, free: 9.094 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006758/0.4032, allocations: 395.2 kB / 496.8 MB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.095e-05/0.4032, allocations: 8.5 kB / 496.8 MB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004778/0.4037, allocations: 328.5 kB / 497.1 MB, free: 8.359 MB / 378.7 MB Notification: Performance of pre-optimization done (n=60): time 1.954e-06/0.4037, allocations: 3.938 kB / 497.1 MB, free: 8.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=60): time 0.001043/0.4048, allocations: 0.5366 MB / 497.7 MB, free: 7.805 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.893e-05/0.4049, allocations: 145 kB / 497.8 MB, free: 7.633 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004391/0.4053, allocations: 377 kB / 498.2 MB, free: 7.258 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.71e-05/0.4054, allocations: 33.7 kB / 498.2 MB, free: 7.219 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.4056, allocations: 276 kB / 498.5 MB, free: 6.941 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.4057, allocations: 181.5 kB / 498.7 MB, free: 6.762 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.837e-05/0.4058, allocations: 0 / 498.7 MB, free: 6.762 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.4059, allocations: 358.8 kB / 499 MB, free: 6.402 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003122/0.4062, allocations: 193.5 kB / 499.2 MB, free: 6.211 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.4066, allocations: 357.4 kB / 499.6 MB, free: 5.797 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/0.407, allocations: 207.1 kB / 499.8 MB, free: 5.594 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.407, allocations: 0 / 499.8 MB, free: 5.594 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001005/0.408, allocations: 0.6493 MB / 0.4887 GB, free: 4.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005119/0.4085, allocations: 1.57 MB / 0.4902 GB, free: 3.242 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.4085, allocations: 8 kB / 0.4902 GB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004957/0.409, allocations: 157.5 kB / 0.4904 GB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004196/0.4095, allocations: 99.81 kB / 0.4905 GB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.109/0.5185, allocations: 3.294 MB / 0.4937 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005495/0.5191, allocations: 81.91 kB / 0.4938 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.023e-05/0.5192, allocations: 28.78 kB / 0.4938 GB, free: 131.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.584e-06/0.5192, allocations: 3.938 kB / 0.4938 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008322/0.52, allocations: 0.5498 MB / 0.4943 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.52, allocations: 3.938 kB / 0.4943 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003959/0.5204, allocations: 154.1 kB / 0.4945 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003376/0.5208, allocations: 93.2 kB / 0.4946 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.5231, allocations: 3.304 MB / 0.4978 GB, free: 129.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004022/0.5235, allocations: 58.81 kB / 0.4978 GB, free: 129.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.801e-05/0.5236, allocations: 23.16 kB / 0.4979 GB, free: 129.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (68): * Single equations (assignments): 66 * 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: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001555/0.5237, allocations: 148 kB / 0.498 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.252e-05/0.5238, allocations: 59.16 kB / 0.4981 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.524, allocations: 60.94 kB / 0.4981 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.524, allocations: 7 kB / 0.4981 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.524, allocations: 0 / 0.4981 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.524, allocations: 3.281 kB / 0.4981 GB, free: 129.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.5257, allocations: 1.316 MB / 0.4994 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.5257, allocations: 0 / 0.4994 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/0.526, allocations: 59.25 kB / 0.4995 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000359/0.5264, allocations: 146.8 kB / 0.4996 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.871e-05/0.5264, allocations: 7.641 kB / 0.4996 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002291/0.5287, allocations: 3.274 MB / 0.5028 GB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.5287, allocations: 0 / 0.5028 GB, free: 126.4 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001107/0.5299, allocations: 0.9179 MB / 0.5037 GB, free: 126.2 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001437/0.5313, allocations: 1.569 MB / 0.5053 GB, free: 125.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002098/0.5315, allocations: 185.3 kB / 0.5054 GB, free: 125.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.495e-05/0.5316, allocations: 4 kB / 0.5054 GB, free: 125.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003618/0.532, allocations: 38.11 kB / 0.5055 GB, free: 125.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.5321, allocations: 50.73 kB / 0.5055 GB, free: 125.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.588e-05/0.5322, allocations: 16.06 kB / 0.5055 GB, free: 125.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002799/0.5324, allocations: 280.5 kB / 0.5058 GB, free: 125.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002052/0.5345, allocations: 318.1 kB / 0.5061 GB, free: 125.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 20 (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_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_n1.off,rectifier.thyristor_n2.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 37 * 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: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001659/0.5347, allocations: 141.2 kB / 0.5062 GB, free: 125.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.5361, allocations: 1.273 MB / 0.5075 GB, free: 124.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5362, allocations: 3.781 kB / 0.5075 GB, free: 124.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004828/0.5366, allocations: 488.5 kB / 0.508 GB, free: 124.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004513/0.5371, allocations: 84.48 kB / 0.508 GB, free: 124.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.539, allocations: 1.012 MB / 0.509 GB, free: 124.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004424/0.5395, allocations: 1.006 MB / 0.51 GB, free: 123.7 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5395, allocations: 2.969 kB / 0.51 GB, free: 123.7 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_res.mat does not exist to compare? outputFormat=mat