Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.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.DiodeBridge2Pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse",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.0009466/0.0009465, allocations: 183.7 kB / 8.138 MB, free: 2.188 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.114/1.114, 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.0008402/0.0008402, allocations: 99 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08944/0.09031, allocations: 55.83 MB / 336.6 MB, free: 9.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.2666, allocations: 50.4 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08117/0.3479, allocations: 81.31 MB / 468.3 MB, free: 5.473 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.3481, allocations: 79.94 kB / 468.4 MB, free: 5.395 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.01925/0.3674, allocations: 7.638 MB / 476 MB, free: 13.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.3674, allocations: 15.94 kB / 476.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.3675, allocations: 61.77 kB / 476.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004937/0.368, allocations: 351.8 kB / 476.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.3681, allocations: 12 kB / 476.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.039e-05/0.3682, allocations: 35.89 kB / 476.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005163/0.3687, allocations: 270 kB / 476.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006043/0.3693, allocations: 387.2 kB / 477.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.3693, allocations: 0 / 477.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.437e-05/0.3694, allocations: 0 / 477.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.3694, allocations: 12 kB / 477.2 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002233/0.3716, allocations: 1.775 MB / 478.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004976/0.3721, allocations: 311.6 kB / 479.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002761/0.3724, allocations: 202 kB / 479.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.3725, allocations: 4.328 kB / 479.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000332/0.3728, allocations: 225.2 kB / 479.7 MB, free: 9.887 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.563e-06/0.3728, allocations: 7.938 kB / 479.7 MB, free: 9.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.0007172/0.3735, allocations: 374 kB / 480 MB, free: 9.504 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.3736, allocations: 89.09 kB / 480.1 MB, free: 9.398 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002407/0.3738, allocations: 243.5 kB / 480.4 MB, free: 9.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.3739, allocations: 29.7 kB / 480.4 MB, free: 9.125 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.374, allocations: 188.9 kB / 480.6 MB, free: 8.938 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.3741, allocations: 130.1 kB / 480.7 MB, free: 8.809 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.101e-05/0.3741, allocations: 4 kB / 480.7 MB, free: 8.805 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3743, allocations: 346.8 kB / 481 MB, free: 8.457 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.3744, allocations: 101 kB / 481.1 MB, free: 8.359 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/0.3747, allocations: 231.1 kB / 481.4 MB, free: 8.082 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.3749, allocations: 123.6 kB / 481.5 MB, free: 7.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3749, allocations: 0 / 481.5 MB, free: 7.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007351/0.3757, allocations: 453.5 kB / 481.9 MB, free: 7.512 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.3757, allocations: 4 kB / 481.9 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3757, allocations: 4 kB / 481.9 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004225/0.3761, allocations: 143.7 kB / 482.1 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002399/0.3764, allocations: 64.81 kB / 482.1 MB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002256/0.3786, allocations: 2.031 MB / 484.2 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/0.3789, allocations: 31.84 kB / 484.2 MB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.3789, allocations: 16 kB / 484.2 MB, free: 5.105 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 13 ($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_p1.off,rectifier.diode_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001084/0.379, allocations: 121.1 kB / 484.3 MB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.446e-05/0.3791, allocations: 47.52 kB / 484.4 MB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.842e-05/0.3792, allocations: 39.23 kB / 484.4 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.3792, allocations: 7.984 kB / 484.4 MB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.3792, allocations: 0.9375 kB / 484.4 MB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.309e-06/0.3792, allocations: 0 / 484.4 MB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004195/0.3797, allocations: 418.1 kB / 484.8 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3797, allocations: 0 / 484.8 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/0.3799, allocations: 39.97 kB / 484.9 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003555/0.3802, allocations: 136.7 kB / 485 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.3803, allocations: 0 / 485 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.3825, allocations: 2.029 MB / 487 MB, free: 2.121 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3825, allocations: 1.328 kB / 487 MB, free: 2.121 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009364/0.3834, allocations: 0.5961 MB / 487.6 MB, free: 1.5 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001254/0.3847, allocations: 1.136 MB / 488.8 MB, free: 348 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.3849, allocations: 148.5 kB / 488.9 MB, free: 180 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.757e-05/0.3849, allocations: 4 kB / 488.9 MB, free: 176 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.3851, allocations: 11.98 kB / 488.9 MB, free: 164 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.118e-05/0.3852, allocations: 23.95 kB / 489 MB, free: 140 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.279e-05/0.3852, allocations: 16 kB / 489 MB, free: 124 kB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001803/0.3854, allocations: 195 kB / 489.2 MB, free: 15.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009801/0.3864, allocations: 123.7 kB / 489.3 MB, free: 15.81 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: 10 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p1.off,rectifier.diode_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last) * Number of discrete states: 3 (meanCurrent.x,rootMeanSquareVoltage.mean.x,meanVoltage.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001645/0.3866, allocations: 127 kB / 489.4 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000726/0.3873, allocations: 457.9 kB / 489.9 MB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3873, allocations: 0 / 489.9 MB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000436/0.3878, allocations: 306 kB / 490.2 MB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.3881, allocations: 57.05 kB / 490.2 MB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.3895, allocations: 0.5776 MB / 490.8 MB, free: 14.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004484/0.3899, allocations: 0.8608 MB / 491.7 MB, free: 13.38 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3899, allocations: 4 kB / 491.7 MB, free: 13.37 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse_res.mat does not exist to compare? outputFormat=mat