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_Characteristic.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_Characteristic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",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.0009373/0.0009373, allocations: 183.8 kB / 8.133 MB, free: 2.199 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.138/1.138, allocations: 221.4 MB / 229.9 MB, free: 3.059 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.0009295/0.0009294, allocations: 97.47 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09043/0.09139, allocations: 55.84 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.2604, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08364/0.3441, allocations: 85.23 MB / 472.2 MB, free: 1.617 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.3443, allocations: 88.59 kB / 472.3 MB, free: 1.531 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.02773/0.372, allocations: 10.91 MB / 483.2 MB, free: 6.594 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.3721, allocations: 8 kB / 483.3 MB, free: 6.586 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.3722, allocations: 63.25 kB / 483.3 MB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005369/0.3728, allocations: 379.7 kB / 483.7 MB, free: 6.109 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.3728, allocations: 12 kB / 483.7 MB, free: 6.098 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.276e-05/0.3729, allocations: 28 kB / 483.7 MB, free: 6.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005524/0.3734, allocations: 317.8 kB / 484 MB, free: 5.758 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006561/0.3741, allocations: 421.9 kB / 484.5 MB, free: 5.328 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.3741, allocations: 3.984 kB / 484.5 MB, free: 5.324 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.319e-05/0.3742, allocations: 8.844 kB / 484.5 MB, free: 5.316 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.3742, allocations: 8 kB / 484.5 MB, free: 5.309 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.3766, allocations: 1.575 MB / 486 MB, free: 3.652 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007453/0.3774, allocations: 375 kB / 486.4 MB, free: 3.277 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.3775, allocations: 116.8 kB / 486.5 MB, free: 3.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.3776, allocations: 3.984 kB / 486.5 MB, free: 3.156 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003022/0.3779, allocations: 215.2 kB / 486.7 MB, free: 2.926 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 1.573e-06/0.3779, allocations: 0 / 486.7 MB, free: 2.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.0005872/0.3785, allocations: 308.4 kB / 487 MB, free: 2.617 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.3786, allocations: 140.5 kB / 487.2 MB, free: 2.449 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.3789, allocations: 267.5 kB / 487.4 MB, free: 2.184 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.112e-05/0.3789, allocations: 33.69 kB / 487.5 MB, free: 2.145 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.379, allocations: 208 kB / 487.7 MB, free: 1.938 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.202e-05/0.3791, allocations: 98.61 kB / 487.8 MB, free: 1.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.622e-05/0.3791, allocations: 0 / 487.8 MB, free: 1.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.3793, allocations: 350.8 kB / 488.1 MB, free: 1.488 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.3795, allocations: 104.8 kB / 488.2 MB, free: 1.387 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002766/0.3797, allocations: 270.9 kB / 488.5 MB, free: 1.051 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.38, allocations: 135.9 kB / 488.6 MB, free: 0.918 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.38, allocations: 0 / 488.6 MB, free: 0.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005992/0.3806, allocations: 390 kB / 489 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005284/0.3811, allocations: 1.659 MB / 490.7 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.3811, allocations: 8 kB / 490.7 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001886/0.3813, allocations: 40.84 kB / 490.7 MB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003132/0.3816, allocations: 87.83 kB / 490.8 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.3827, allocations: 1.35 MB / 492.1 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.3831, allocations: 67.72 kB / 492.2 MB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.3831, allocations: 20.05 kB / 492.2 MB, free: 13.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.871e-06/0.3832, allocations: 4 kB / 492.2 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004989/0.3837, allocations: 320.9 kB / 492.5 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3837, allocations: 4 kB / 492.5 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001212/0.3838, allocations: 44.77 kB / 492.6 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002716/0.3841, allocations: 72.22 kB / 492.7 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009466/0.385, allocations: 1.346 MB / 494 MB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003124/0.3854, allocations: 59.78 kB / 494.1 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.514e-05/0.3854, allocations: 20.06 kB / 494.1 MB, free: 11.07 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 (49): * Single equations (assignments): 48 * 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.0001272/0.3856, allocations: 135.5 kB / 494.2 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.3856, allocations: 39.53 kB / 494.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.417e-05/0.3857, allocations: 35.95 kB / 494.3 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3857, allocations: 4 kB / 494.3 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.3857, allocations: 0 / 494.3 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3857, allocations: 7.984 kB / 494.3 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.3868, allocations: 0.8119 MB / 495.1 MB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-06/0.3868, allocations: 0 / 495.1 MB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.387, allocations: 48.03 kB / 495.2 MB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001239/0.3872, allocations: 40.83 kB / 495.2 MB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.3872, allocations: 8 kB / 495.2 MB, free: 9.887 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009722/0.3882, allocations: 1.326 MB / 496.5 MB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3882, allocations: 3.906 kB / 496.5 MB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006987/0.3889, allocations: 0.5378 MB / 497.1 MB, free: 7.887 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009895/0.3899, allocations: 1.075 MB / 498.1 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.3901, allocations: 148.5 kB / 498.3 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.061e-05/0.3901, allocations: 0 / 498.3 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003315/0.3905, allocations: 51.95 kB / 498.3 MB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.505e-05/0.3906, allocations: 27.95 kB / 498.4 MB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.3906, allocations: 12.23 kB / 498.4 MB, free: 6.535 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001936/0.3908, allocations: 199.1 kB / 498.6 MB, free: 6.344 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001748/0.3926, allocations: 195.2 kB / 498.8 MB, free: 6.152 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 (30): * Single equations (assignments): 24 * 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.0001646/0.3927, allocations: 133 kB / 498.9 MB, free: 6.008 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009186/0.3937, allocations: 0.683 MB / 499.6 MB, free: 5.305 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3937, allocations: 0 / 499.6 MB, free: 5.305 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000304/0.394, allocations: 245.6 kB / 499.8 MB, free: 5.055 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.3943, allocations: 58.5 kB / 499.9 MB, free: 5.004 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.3957, allocations: 0.6196 MB / 0.4888 GB, free: 4.363 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005152/0.3962, allocations: 0.8965 MB / 0.4896 GB, free: 3.441 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3962, allocations: 0 / 0.4896 GB, free: 3.441 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.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_Characteristic_res.mat does not exist to compare? outputFormat=mat