Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_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.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_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.0009705/0.0009706, allocations: 184 kB / 8.136 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.113/1.113, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0007827/0.0007827, allocations: 95.69 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09198/0.09279, allocations: 55.84 MB / 336.6 MB, free: 9.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1921/0.2849, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08479/0.3698, allocations: 85.05 MB / 472.1 MB, free: 1.719 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.3701, allocations: 88.92 kB / 472.1 MB, free: 1.633 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.02763/0.3977, allocations: 10.74 MB / 482.9 MB, free: 6.867 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.3977, allocations: 8 kB / 482.9 MB, free: 6.859 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.3979, allocations: 59.33 kB / 482.9 MB, free: 6.801 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006016/0.3985, allocations: 383.6 kB / 483.3 MB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.3985, allocations: 23.98 kB / 483.3 MB, free: 6.359 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.433e-05/0.3986, allocations: 27.98 kB / 483.4 MB, free: 6.332 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000537/0.3992, allocations: 305.8 kB / 483.7 MB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006599/0.3998, allocations: 421.8 kB / 484.1 MB, free: 5.602 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.3999, allocations: 0 / 484.1 MB, free: 5.602 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.92e-05/0.3999, allocations: 0 / 484.1 MB, free: 5.602 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.3999, allocations: 15.91 kB / 484.1 MB, free: 5.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.4024, allocations: 1.547 MB / 485.6 MB, free: 3.957 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004698/0.4029, allocations: 265.9 kB / 485.9 MB, free: 3.691 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.4031, allocations: 104.8 kB / 486 MB, free: 3.586 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.4031, allocations: 3.984 kB / 486 MB, free: 3.582 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002759/0.4034, allocations: 200.9 kB / 486.2 MB, free: 3.367 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.623e-06/0.4034, allocations: 4 kB / 486.2 MB, free: 3.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005723/0.404, allocations: 274 kB / 486.5 MB, free: 3.086 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.077e-05/0.4041, allocations: 140.5 kB / 486.6 MB, free: 2.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003118/0.4044, allocations: 283.5 kB / 486.9 MB, free: 2.641 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.007e-05/0.4044, allocations: 29.7 kB / 486.9 MB, free: 2.605 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.4046, allocations: 215.9 kB / 487.1 MB, free: 2.391 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.697e-05/0.4046, allocations: 90.73 kB / 487.2 MB, free: 2.301 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.676e-05/0.4047, allocations: 4 kB / 487.2 MB, free: 2.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.4048, allocations: 346.8 kB / 487.6 MB, free: 1.949 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.405, allocations: 104.8 kB / 487.7 MB, free: 1.848 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/0.4052, allocations: 259 kB / 487.9 MB, free: 1.527 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.4054, allocations: 127.9 kB / 488 MB, free: 1.402 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.4054, allocations: 0 / 488 MB, free: 1.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006028/0.406, allocations: 390.2 kB / 488.4 MB, free: 1.012 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005563/0.4066, allocations: 1.659 MB / 490.1 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.4066, allocations: 7.938 kB / 490.1 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002049/0.4068, allocations: 40.84 kB / 490.1 MB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.4071, allocations: 83.83 kB / 490.2 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.4082, allocations: 1.338 MB / 491.6 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003857/0.4086, allocations: 75.7 kB / 491.6 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.903e-05/0.4086, allocations: 16.06 kB / 491.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.992e-06/0.4087, allocations: 4 kB / 491.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004917/0.4092, allocations: 316.4 kB / 492 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.4092, allocations: 4 kB / 492 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001232/0.4093, allocations: 49.5 kB / 492 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002233/0.4095, allocations: 71.84 kB / 492.1 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009859/0.4105, allocations: 1.334 MB / 493.4 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003098/0.4109, allocations: 55.84 kB / 493.5 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.4109, allocations: 20 kB / 493.5 MB, free: 11.58 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: 21 ($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,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_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.411, allocations: 131.6 kB / 493.6 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.083e-05/0.4111, allocations: 39.53 kB / 493.7 MB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.381e-05/0.4112, allocations: 35.95 kB / 493.7 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.4112, allocations: 7.938 kB / 493.7 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.4112, allocations: 4 kB / 493.7 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.4112, allocations: 128 / 493.7 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.4123, allocations: 0.7885 MB / 494.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4123, allocations: 0 / 494.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.4125, allocations: 35.92 kB / 494.5 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001217/0.4126, allocations: 36.84 kB / 494.6 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.4126, allocations: 3.984 kB / 494.6 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009284/0.4135, allocations: 1.326 MB / 495.9 MB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4136, allocations: 3.906 kB / 495.9 MB, free: 9 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006571/0.4142, allocations: 0.4964 MB / 496.4 MB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009137/0.4152, allocations: 1.022 MB / 497.4 MB, free: 7.438 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.4153, allocations: 144.8 kB / 497.6 MB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.093e-05/0.4154, allocations: 4.125 kB / 497.6 MB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002868/0.4157, allocations: 39.97 kB / 497.6 MB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.85e-05/0.4157, allocations: 23.95 kB / 497.6 MB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.4158, allocations: 15.98 kB / 497.6 MB, free: 7.195 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002017/0.416, allocations: 211.1 kB / 497.8 MB, free: 6.992 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001761/0.4178, allocations: 191.3 kB / 498 MB, free: 6.805 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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 21 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001641/0.4179, allocations: 128.8 kB / 498.2 MB, free: 6.664 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008534/0.4188, allocations: 0.6593 MB / 498.8 MB, free: 5.988 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4188, allocations: 0 / 498.8 MB, free: 5.988 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002584/0.4191, allocations: 237.8 kB / 499 MB, free: 5.746 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.4194, allocations: 44.92 kB / 499.1 MB, free: 5.703 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.4207, allocations: 0.5889 MB / 499.7 MB, free: 5.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004667/0.4212, allocations: 0.8944 MB / 0.4888 GB, free: 4.172 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4212, allocations: 0 / 0.4888 GB, free: 4.172 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat