Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_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 trunk/package.mo): time 0.001054/0.001054, allocations: 198.8 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.151/1.151, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008464/0.0008464, allocations: 93.84 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08992/0.09079, allocations: 56.92 MB / 343.3 MB, free: 8.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07996/0.1708, allocations: 51.48 MB / 394.7 MB, free: 5.051 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.208/0.3788, allocations: 88.94 MB / 483.7 MB, free: 4.258 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/0.3791, allocations: 79.02 kB / 483.7 MB, free: 4.215 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.03553/0.4146, allocations: 15.09 MB / 498.8 MB, free: 7.633 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.4147, allocations: 8 kB / 498.8 MB, free: 7.625 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.4149, allocations: 100.2 kB / 498.9 MB, free: 7.527 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007096/0.4156, allocations: 0.4936 MB / 499.4 MB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.4157, allocations: 31.91 kB / 499.5 MB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.458e-05/0.4158, allocations: 47.92 kB / 499.5 MB, free: 7 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007859/0.4166, allocations: 478.6 kB / 500 MB, free: 6.719 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009523/0.4175, allocations: 0.6136 MB / 0.4889 GB, free: 6.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.4176, allocations: 8 kB / 0.4889 GB, free: 6.242 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.443e-05/0.4176, allocations: 3.984 kB / 0.4889 GB, free: 6.238 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.4176, allocations: 16 kB / 0.4889 GB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00342/0.4211, allocations: 2.554 MB / 0.4914 GB, free: 4.125 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006859/0.4218, allocations: 464.5 kB / 0.4918 GB, free: 3.816 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003197/0.4221, allocations: 256 kB / 0.4921 GB, free: 3.656 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.4221, allocations: 5.844 kB / 0.4921 GB, free: 3.648 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004473/0.4226, allocations: 311.4 kB / 0.4924 GB, free: 3.414 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 1.783e-06/0.4226, allocations: 0 / 0.4924 GB, free: 3.414 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.0008632/0.4235, allocations: 492.9 kB / 0.4928 GB, free: 3.059 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.826e-05/0.4236, allocations: 148.9 kB / 0.493 GB, free: 2.883 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003978/0.424, allocations: 378.3 kB / 0.4933 GB, free: 2.598 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.283e-05/0.424, allocations: 36.88 kB / 0.4934 GB, free: 2.559 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.4242, allocations: 270.3 kB / 0.4936 GB, free: 2.316 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.4243, allocations: 160.3 kB / 0.4938 GB, free: 2.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.6e-05/0.4244, allocations: 3.938 kB / 0.4938 GB, free: 2.176 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.4245, allocations: 370.6 kB / 0.4941 GB, free: 1.828 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003349/0.4249, allocations: 176.5 kB / 0.4943 GB, free: 1.727 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004223/0.4253, allocations: 338.4 kB / 0.4946 GB, free: 1.426 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003198/0.4256, allocations: 201 kB / 0.4948 GB, free: 1.297 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.4256, allocations: 0 / 0.4948 GB, free: 1.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009787/0.4266, allocations: 0.6087 MB / 0.4954 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005085/0.4271, allocations: 1.565 MB / 0.497 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.4272, allocations: 4 kB / 0.497 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004714/0.4276, allocations: 159.6 kB / 0.4971 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000375/0.428, allocations: 91.02 kB / 0.4972 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002376/0.4304, allocations: 2.081 MB / 0.4992 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004719/0.4309, allocations: 83.7 kB / 0.4993 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.321e-05/0.4309, allocations: 23.44 kB / 0.4993 GB, free: 13.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-06/0.431, allocations: 4 kB / 0.4993 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008876/0.4319, allocations: 0.5235 MB / 0.4998 GB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.4319, allocations: 4 kB / 0.4999 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003868/0.4323, allocations: 148.8 kB / 0.5 GB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.4326, allocations: 79.09 kB / 0.5001 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002811/0.4354, allocations: 2.085 MB / 0.5021 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004629/0.4359, allocations: 59.81 kB / 0.5022 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.479e-05/0.4359, allocations: 33.48 kB / 0.5022 GB, free: 10.44 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 (63): * Single equations (assignments): 62 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.000204/0.4362, allocations: 140.7 kB / 0.5023 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.4363, allocations: 55.34 kB / 0.5024 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001553/0.4364, allocations: 57.34 kB / 0.5024 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.4364, allocations: 4 kB / 0.5024 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4365, allocations: 4 kB / 0.5024 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.4365, allocations: 4 kB / 0.5024 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.4386, allocations: 1.239 MB / 0.5037 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.4386, allocations: 0 / 0.5037 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002936/0.4389, allocations: 47.86 kB / 0.5037 GB, free: 8.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004656/0.4394, allocations: 151.9 kB / 0.5038 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.273e-05/0.4395, allocations: 3.984 kB / 0.5039 GB, free: 8.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002698/0.4422, allocations: 2.035 MB / 0.5058 GB, free: 6.539 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.4422, allocations: 0 / 0.5058 GB, free: 6.539 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001454/0.4436, allocations: 0.8521 MB / 0.5067 GB, free: 5.668 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001998/0.4457, allocations: 1.492 MB / 0.5081 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002717/0.4459, allocations: 193.9 kB / 0.5083 GB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.4461, allocations: 0 / 0.5083 GB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.4465, allocations: 35.97 kB / 0.5083 GB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.4466, allocations: 52.42 kB / 0.5084 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.805e-05/0.4467, allocations: 15.98 kB / 0.5084 GB, free: 3.848 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000365/0.4471, allocations: 283.2 kB / 0.5087 GB, free: 3.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002428/0.4495, allocations: 311 kB / 0.509 GB, free: 3.266 MB / 378.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: 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_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 34 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002108/0.4497, allocations: 138.1 kB / 0.5091 GB, free: 3.121 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.4513, allocations: 1.046 MB / 0.5101 GB, free: 2.059 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4513, allocations: 0 / 0.5101 GB, free: 2.059 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005258/0.4519, allocations: 399.4 kB / 0.5105 GB, free: 1.656 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.4523, allocations: 90.64 kB / 0.5106 GB, free: 1.574 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.4543, allocations: 0.9157 MB / 0.5115 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006052/0.4549, allocations: 0.9896 MB / 0.5125 GB, free: 15.62 MB / 394.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4549, allocations: 0 / 0.5125 GB, free: 15.62 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat does not exist to compare? outputFormat=mat