Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.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.RectifierCenterTapmPulse.DiodeCenterTapmPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_DiodeCenterTapmPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_DiodeCenterTapmPulse",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.0009984/0.0009984, allocations: 188.3 kB / 8.137 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.103/1.103, allocations: 221.4 MB / 229.9 MB, free: 3.285 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.0009232/0.0009232, allocations: 97.34 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08651/0.08746, allocations: 55.84 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1738/0.2613, allocations: 50.39 MB / 387 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08091/0.3423, allocations: 83.61 MB / 470.6 MB, free: 3.137 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.3426, allocations: 90.56 kB / 470.7 MB, free: 3.051 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.03531/0.3779, allocations: 14.38 MB / 485.1 MB, free: 4.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.3779, allocations: 8 kB / 485.1 MB, free: 4.562 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.3781, allocations: 98.81 kB / 485.2 MB, free: 4.465 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009128/0.379, allocations: 0.611 MB / 485.8 MB, free: 3.812 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.379, allocations: 20 kB / 485.8 MB, free: 3.793 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.713e-05/0.3791, allocations: 47.84 kB / 485.9 MB, free: 3.746 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00106/0.3802, allocations: 0.6976 MB / 486.6 MB, free: 3.047 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.3814, allocations: 0.7957 MB / 487.4 MB, free: 2.211 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.3814, allocations: 0 / 487.4 MB, free: 2.211 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.306e-05/0.3815, allocations: 11.98 kB / 487.4 MB, free: 2.199 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.611e-05/0.3815, allocations: 29.25 kB / 487.4 MB, free: 2.172 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003638/0.3851, allocations: 2.715 MB / 490.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005678/0.3857, allocations: 447.7 kB / 490.6 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005251/0.3863, allocations: 357.4 kB / 490.9 MB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.3863, allocations: 4.328 kB / 490.9 MB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000421/0.3867, allocations: 338 kB / 491.2 MB, free: 14.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.315e-06/0.3867, allocations: 0 / 491.2 MB, free: 14.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001043/0.3878, allocations: 0.6261 MB / 491.9 MB, free: 13.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.3879, allocations: 106.8 kB / 492 MB, free: 13.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005314/0.3884, allocations: 485 kB / 492.5 MB, free: 12.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.3884, allocations: 25.7 kB / 492.5 MB, free: 12.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.3886, allocations: 291.8 kB / 492.8 MB, free: 12.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.3887, allocations: 130.1 kB / 492.9 MB, free: 12.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.107e-05/0.3888, allocations: 4 kB / 492.9 MB, free: 12.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3889, allocations: 362.8 kB / 493.2 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.3892, allocations: 196.9 kB / 493.4 MB, free: 11.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.3895, allocations: 335.2 kB / 493.8 MB, free: 11.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.3898, allocations: 223.7 kB / 494 MB, free: 11.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.3898, allocations: 4 kB / 494 MB, free: 11.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.000924/0.3907, allocations: 0.6615 MB / 494.6 MB, free: 10.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.3908, allocations: 4 kB / 494.7 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3908, allocations: 4 kB / 494.7 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004678/0.3913, allocations: 205 kB / 494.9 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003185/0.3916, allocations: 83.83 kB / 494.9 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002362/0.394, allocations: 2.387 MB / 497.3 MB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003202/0.3943, allocations: 39.67 kB / 497.4 MB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.348e-05/0.3943, allocations: 20 kB / 497.4 MB, free: 7.824 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,rectifier.diode.idealDiode[1].off,rectifier.diode.idealDiode[2].off,rectifier.diode.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * 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 {3 11} Notification: Performance of prepare postOptimizeDAE: time 0.0001184/0.3945, allocations: 124.7 kB / 497.5 MB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.567e-05/0.3945, allocations: 63.33 kB / 497.6 MB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.3947, allocations: 56.98 kB / 497.6 MB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3947, allocations: 7.938 kB / 497.6 MB, free: 7.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3947, allocations: 4 kB / 497.6 MB, free: 7.566 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3947, allocations: 4.234 kB / 497.6 MB, free: 7.562 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/0.3967, allocations: 1.484 MB / 499.1 MB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.3967, allocations: 4 kB / 499.1 MB, free: 6.023 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002535/0.3969, allocations: 52 kB / 499.2 MB, free: 5.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004117/0.3974, allocations: 196.7 kB / 499.4 MB, free: 5.777 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/0.3974, allocations: 8 kB / 499.4 MB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002225/0.3996, allocations: 2.346 MB / 0.49 GB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3996, allocations: 0 / 0.49 GB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001235/0.4009, allocations: 1.053 MB / 0.491 GB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001739/0.4026, allocations: 1.749 MB / 0.4927 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002511/0.4029, allocations: 192.3 kB / 0.4929 GB, free: 244 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.387e-05/0.403, allocations: 0 / 0.4929 GB, free: 244 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002989/0.4033, allocations: 23.98 kB / 0.4929 GB, free: 220 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.248e-05/0.4034, allocations: 32.22 kB / 0.4929 GB, free: 188 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.4034, allocations: 16 kB / 0.493 GB, free: 172 kB / 378.7 MB Notification: Performance of sort global known variables: time 0.09635/0.4998, allocations: 379.7 kB / 0.4933 GB, free: 134.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001248/0.5011, allocations: 188.2 kB / 0.4935 GB, free: 134.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode.idealDiode[1].off,rectifier.diode.idealDiode[2].off,rectifier.diode.idealDiode[3].off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001545/0.5012, allocations: 117 kB / 0.4936 GB, free: 134.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000791/0.502, allocations: 0.6281 MB / 0.4942 GB, free: 134.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5021, allocations: 0 / 0.4942 GB, free: 134.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000411/0.5025, allocations: 410 kB / 0.4946 GB, free: 134.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005141/0.503, allocations: 107.9 kB / 0.4947 GB, free: 134.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.5047, allocations: 1.079 MB / 0.4958 GB, free: 134 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004787/0.5052, allocations: 1.129 MB / 0.4969 GB, free: 133.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5052, allocations: 0 / 0.4969 GB, free: 133.3 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_DiodeCenterTapmPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_DiodeCenterTapmPulse.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse_res.mat does not exist to compare? outputFormat=mat