Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.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.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009701/0.0009701, allocations: 182.8 kB / 8.477 MB, free: 1.859 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.015/1.015, allocations: 205.2 MB / 214.1 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008916/0.0008916, allocations: 84.94 kB / 262.1 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08548/0.0864, allocations: 53 MB / 315.1 MB, free: 8.559 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.2486, allocations: 47.57 MB / 362.7 MB, free: 45.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0817/0.3304, allocations: 87.34 MB / 450 MB, free: 14.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.3307, allocations: 90.28 kB / 450.1 MB, free: 14.43 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.03636/0.367, allocations: 14.77 MB / 464.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.3671, allocations: 12 kB / 464.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.3673, allocations: 90.97 kB / 465 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007965/0.3681, allocations: 0.5024 MB / 465.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.3681, allocations: 24 kB / 465.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.727e-05/0.3682, allocations: 44 kB / 465.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008276/0.3691, allocations: 475.9 kB / 466 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009683/0.37, allocations: 0.6171 MB / 466.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.602e-05/0.3701, allocations: 4 kB / 466.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.566e-05/0.3701, allocations: 3.906 kB / 466.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.3702, allocations: 16 kB / 466.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003513/0.3737, allocations: 2.564 MB / 469.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006642/0.3744, allocations: 454.2 kB / 469.6 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006456/0.375, allocations: 382 kB / 470 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.873e-05/0.3751, allocations: 4.438 kB / 470 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000428/0.3755, allocations: 311.8 kB / 470.3 MB, free: 9.961 MB / 362.7 MB Notification: Performance of pre-optimization done (n=58): time 2.244e-06/0.3755, allocations: 0 / 470.3 MB, free: 9.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.0009492/0.3765, allocations: 0.5171 MB / 470.8 MB, free: 9.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.3765, allocations: 115.3 kB / 470.9 MB, free: 9.293 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004001/0.3769, allocations: 365 kB / 471.3 MB, free: 8.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.808e-05/0.377, allocations: 37.7 kB / 471.3 MB, free: 8.887 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.3771, allocations: 272.1 kB / 471.6 MB, free: 8.617 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.3773, allocations: 165.6 kB / 471.8 MB, free: 8.453 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.656e-05/0.3773, allocations: 0 / 471.8 MB, free: 8.453 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.3774, allocations: 366.7 kB / 472.1 MB, free: 8.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.3777, allocations: 177.3 kB / 472.3 MB, free: 7.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003561/0.3781, allocations: 338.8 kB / 472.6 MB, free: 7.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.3784, allocations: 193.4 kB / 472.8 MB, free: 7.328 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.3784, allocations: 8 kB / 472.8 MB, free: 7.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0009402/0.3794, allocations: 0.6145 MB / 473.4 MB, free: 6.691 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004113/0.3798, allocations: 1.574 MB / 475 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3798, allocations: 5.016 kB / 475 MB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00047/0.3803, allocations: 161.6 kB / 475.2 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.3807, allocations: 99.81 kB / 475.3 MB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002874/0.3835, allocations: 3.299 MB / 478.6 MB, free: 1.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004442/0.384, allocations: 75.56 kB / 478.6 MB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.353e-05/0.3841, allocations: 24 kB / 478.7 MB, free: 1.105 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.57e-06/0.3841, allocations: 4 kB / 478.7 MB, free: 1.102 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000832/0.3849, allocations: 0.5276 MB / 479.2 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-06/0.3849, allocations: 8 kB / 479.2 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003895/0.3853, allocations: 154.1 kB / 479.4 MB, free: 416 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000325/0.3857, allocations: 91.83 kB / 479.5 MB, free: 324 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002766/0.3884, allocations: 3.294 MB / 482.7 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003824/0.3888, allocations: 59.62 kB / 482.8 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-05/0.3889, allocations: 24 kB / 482.8 MB, free: 12.71 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,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$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 (66): * Single equations (assignments): 64 * 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.0001517/0.389, allocations: 136.9 kB / 483 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.198e-05/0.3891, allocations: 63.27 kB / 483 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001166/0.3892, allocations: 61.22 kB / 483.1 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.3893, allocations: 12 kB / 483.1 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3893, allocations: 448 / 483.1 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.3893, allocations: 7.984 kB / 483.1 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.391, allocations: 1.259 MB / 484.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.391, allocations: 0 / 484.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002619/0.3913, allocations: 59.78 kB / 484.4 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003758/0.3916, allocations: 153.6 kB / 484.6 MB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.538e-05/0.3917, allocations: 8 kB / 484.6 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002635/0.3943, allocations: 3.258 MB / 487.8 MB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3943, allocations: 7.969 kB / 487.8 MB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001171/0.3955, allocations: 0.8726 MB / 488.7 MB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001555/0.3971, allocations: 1.501 MB / 490.2 MB, free: 4.977 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.3973, allocations: 188.3 kB / 490.4 MB, free: 4.773 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.474e-05/0.3974, allocations: 3.984 kB / 490.4 MB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000342/0.3978, allocations: 35.97 kB / 490.4 MB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.3979, allocations: 44.42 kB / 490.5 MB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.3979, allocations: 16 kB / 490.5 MB, free: 4.676 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002639/0.3982, allocations: 283.2 kB / 490.8 MB, free: 4.398 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00202/0.4002, allocations: 303 kB / 491.1 MB, free: 4.102 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,rootMeanSquareVoltage.mean.y,meanCurrent.y,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 (42): * Single equations (assignments): 35 * 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.000163/0.4004, allocations: 126.2 kB / 491.2 MB, free: 3.969 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.4019, allocations: 1.231 MB / 492.4 MB, free: 2.699 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4019, allocations: 0 / 492.4 MB, free: 2.699 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000516/0.4024, allocations: 481.7 kB / 492.9 MB, free: 2.211 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004372/0.4029, allocations: 70.06 kB / 493 MB, free: 2.145 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001908/0.4048, allocations: 0.9845 MB / 493.9 MB, free: 1.129 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005157/0.4053, allocations: 0.9935 MB / 494.9 MB, free: 104 kB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.4053, allocations: 0 / 494.9 MB, free: 104 kB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_res.mat does not exist to compare? outputFormat=mat