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_DC_Drive.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_DC_Drive,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",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.0009996/0.0009999, allocations: 180.8 kB / 8.135 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.088/1.088, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0008727/0.0008728, allocations: 87.05 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0902/0.0911, allocations: 55.84 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.2645, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1007/0.3652, allocations: 106.4 MB / 493.4 MB, free: 12.35 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.3654, allocations: 95.88 kB / 493.5 MB, free: 12.26 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 373 * Number of variables: 373 Notification: Performance of Generate backend data structure: time 0.207/0.5724, allocations: 38.29 MB / 0.5193 GB, free: 90.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.5724, allocations: 8 kB / 0.5193 GB, free: 90.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007324/0.5732, allocations: 249.4 kB / 0.5196 GB, free: 90.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002263/0.5755, allocations: 1.29 MB / 0.5208 GB, free: 88.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.838e-05/0.5755, allocations: 52 kB / 0.5209 GB, free: 88.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.5757, allocations: 99.84 kB / 0.521 GB, free: 88.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001742/0.5775, allocations: 1.111 MB / 0.5221 GB, free: 87.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001874/0.5793, allocations: 1.334 MB / 0.5234 GB, free: 86.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/0.5794, allocations: 7.906 kB / 0.5234 GB, free: 86.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.5795, allocations: 3.938 kB / 0.5234 GB, free: 86.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.5795, allocations: 36 kB / 0.5234 GB, free: 86.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00706/0.5866, allocations: 6.178 MB / 0.5294 GB, free: 79.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007712/0.5874, allocations: 0.558 MB / 0.53 GB, free: 79.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007103/0.5881, allocations: 0.5548 MB / 0.5305 GB, free: 78.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.984e-05/0.5882, allocations: 8.781 kB / 0.5305 GB, free: 78.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006192/0.5888, allocations: 0.5278 MB / 0.5311 GB, free: 78.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=94): time 2.395e-06/0.5888, allocations: 0 / 0.5311 GB, free: 78.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.003038/0.5919, allocations: 2.281 MB / 0.5333 GB, free: 75.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.5919, allocations: 196.6 kB / 0.5335 GB, free: 75.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.593, allocations: 1.005 MB / 0.5344 GB, free: 74.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.197e-05/0.5931, allocations: 29.7 kB / 0.5345 GB, free: 74.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/0.5934, allocations: 0.6034 MB / 0.5351 GB, free: 73.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.5936, allocations: 311.5 kB / 0.5354 GB, free: 73.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/0.5936, allocations: 4 kB / 0.5354 GB, free: 73.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.469e-05/0.5937, allocations: 357.9 kB / 0.5357 GB, free: 73.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005099/0.5942, allocations: 407.9 kB / 0.5361 GB, free: 72.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006368/0.5948, allocations: 0.8256 MB / 0.5369 GB, free: 71.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006185/0.5955, allocations: 0.4947 MB / 0.5374 GB, free: 71.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.5955, allocations: 4 kB / 0.5374 GB, free: 71.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.001782/0.5973, allocations: 1.454 MB / 0.5388 GB, free: 69.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006379/0.5979, allocations: 5.062 MB / 0.5438 GB, free: 64.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.5979, allocations: 12 kB / 0.5438 GB, free: 64.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005123/0.5985, allocations: 213.6 kB / 0.544 GB, free: 64.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.5995, allocations: 307.6 kB / 0.5443 GB, free: 63.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002656/0.6022, allocations: 3.594 MB / 0.5478 GB, free: 59.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/0.6032, allocations: 132 kB / 0.5479 GB, free: 59.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.76e-05/0.6033, allocations: 56 kB / 0.5479 GB, free: 59.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.39e-06/0.6033, allocations: 4 kB / 0.548 GB, free: 59.77 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001587/0.6049, allocations: 1.282 MB / 0.5492 GB, free: 58.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/0.605, allocations: 20.03 kB / 0.5492 GB, free: 58.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000443/0.6054, allocations: 205.5 kB / 0.5494 GB, free: 58.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009795/0.6064, allocations: 303.5 kB / 0.5497 GB, free: 57.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/0.609, allocations: 3.582 MB / 0.5532 GB, free: 54.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.61, allocations: 112 kB / 0.5533 GB, free: 54.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.708e-05/0.6101, allocations: 60.05 kB / 0.5534 GB, free: 53.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (146): * Single equations (assignments): 144 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001848/0.6103, allocations: 168.6 kB / 0.5535 GB, free: 53.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.6104, allocations: 126.4 kB / 0.5537 GB, free: 53.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.6119, allocations: 1.143 MB / 0.5548 GB, free: 52.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.6119, allocations: 12 kB / 0.5548 GB, free: 52.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.6119, allocations: 0 / 0.5548 GB, free: 52.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.612, allocations: 7.922 kB / 0.5548 GB, free: 52.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002894/0.6149, allocations: 2.509 MB / 0.5572 GB, free: 49.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.6149, allocations: 4 kB / 0.5572 GB, free: 49.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000693/0.6156, allocations: 164 kB / 0.5574 GB, free: 49.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004254/0.616, allocations: 193.5 kB / 0.5576 GB, free: 49.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.235e-05/0.6161, allocations: 15.98 kB / 0.5576 GB, free: 49.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002487/0.6186, allocations: 3.542 MB / 0.5611 GB, free: 45.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6186, allocations: 128 / 0.5611 GB, free: 45.76 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001766/0.6204, allocations: 1.778 MB / 0.5628 GB, free: 43.89 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00339/0.6238, allocations: 3.716 MB / 0.5664 GB, free: 40.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004333/0.6242, allocations: 311.3 kB / 0.5667 GB, free: 39.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.6245, allocations: 16.12 kB / 0.5667 GB, free: 39.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008743/0.6253, allocations: 99.89 kB / 0.5668 GB, free: 39.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.6255, allocations: 72.66 kB / 0.5669 GB, free: 39.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.839e-05/0.6256, allocations: 31.98 kB / 0.5669 GB, free: 39.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000943/0.6265, allocations: 0.7325 MB / 0.5676 GB, free: 38.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003235/0.6298, allocations: 0.5624 MB / 0.5682 GB, free: 38.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twoPulse.filter[1].firstOrder.y,pulse2.twoPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twoPulse.filter[1].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.i) * Number of discrete variables: 20 (pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[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_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 68 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004375/0.6302, allocations: 302.7 kB / 0.5685 GB, free: 37.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002707/0.6329, allocations: 2.191 MB / 0.5706 GB, free: 35.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.633, allocations: 0 / 0.5706 GB, free: 35.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009054/0.6339, allocations: 0.7681 MB / 0.5714 GB, free: 34.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.635, allocations: 252 kB / 0.5716 GB, free: 34.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004411/0.6394, allocations: 2.51 MB / 0.5741 GB, free: 32.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008906/0.6403, allocations: 1.453 MB / 0.5755 GB, free: 30.68 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.6403, allocations: 0 / 0.5755 GB, free: 30.68 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.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_DC_Drive_res.mat does not exist to compare? outputFormat=mat