Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.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.DiodeBridge2Pulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.000939/0.000939, allocations: 180 kB / 8.478 MB, free: 1.879 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.046/1.046, allocations: 205.2 MB / 214.1 MB, free: 5.105 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009051/0.0009051, allocations: 79.73 kB / 262.1 MB, free: 5.156 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1454/0.1463, allocations: 53 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06216/0.2085, allocations: 47.57 MB / 362.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2007/0.4092, allocations: 80 MB / 442.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/0.4094, allocations: 79.17 kB / 442.7 MB, free: 10.7 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.01667/0.4261, allocations: 7.436 MB / 450.2 MB, free: 8.586 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.4262, allocations: 7.688 kB / 450.2 MB, free: 8.586 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.4263, allocations: 58.3 kB / 450.2 MB, free: 8.555 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004197/0.4267, allocations: 362 kB / 450.6 MB, free: 8.277 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.4267, allocations: 11.69 kB / 450.6 MB, free: 8.277 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.547e-05/0.4268, allocations: 27.17 kB / 450.6 MB, free: 8.273 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004382/0.4272, allocations: 270 kB / 450.9 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000492/0.4277, allocations: 382.3 kB / 451.3 MB, free: 8.121 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.4278, allocations: 4.219 kB / 451.3 MB, free: 8.117 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.4278, allocations: 7.797 kB / 451.3 MB, free: 8.113 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.4278, allocations: 11.78 kB / 451.3 MB, free: 8.109 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.4296, allocations: 1.753 MB / 453 MB, free: 6.957 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004224/0.4301, allocations: 305.8 kB / 453.3 MB, free: 6.918 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002331/0.4303, allocations: 200.1 kB / 453.5 MB, free: 6.906 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.4304, allocations: 4.234 kB / 453.5 MB, free: 6.906 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.4306, allocations: 226.8 kB / 453.8 MB, free: 6.805 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 1.503e-06/0.4306, allocations: 0 / 453.8 MB, free: 6.805 MB / 314.7 MB Notification: Performance of matching and sorting (n=43): time 0.0006284/0.4313, allocations: 387 kB / 454.1 MB, free: 6.707 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.4313, allocations: 88.05 kB / 454.2 MB, free: 6.613 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.4315, allocations: 238.8 kB / 454.4 MB, free: 6.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.4315, allocations: 29.42 kB / 454.5 MB, free: 6.469 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.514e-05/0.4316, allocations: 184.4 kB / 454.7 MB, free: 6.312 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.203e-05/0.4317, allocations: 127.2 kB / 454.8 MB, free: 6.223 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.669e-05/0.4317, allocations: 0 / 454.8 MB, free: 6.223 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.172e-05/0.4318, allocations: 343.7 kB / 455.1 MB, free: 5.898 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.4319, allocations: 104.8 kB / 455.2 MB, free: 5.895 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.4321, allocations: 233.1 kB / 455.4 MB, free: 5.742 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.4323, allocations: 127.3 kB / 455.6 MB, free: 5.719 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.4323, allocations: 0 / 455.6 MB, free: 5.719 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006101/0.4329, allocations: 448.8 kB / 456 MB, free: 5.609 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/0.433, allocations: 7.844 kB / 456 MB, free: 5.605 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.433, allocations: 3.844 kB / 456 MB, free: 5.605 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003767/0.4333, allocations: 141.6 kB / 456.2 MB, free: 5.574 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000222/0.4336, allocations: 60.88 kB / 456.2 MB, free: 5.562 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.4354, allocations: 2.034 MB / 458.3 MB, free: 4.203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.4356, allocations: 35.22 kB / 458.3 MB, free: 4.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.4356, allocations: 23.3 kB / 458.3 MB, free: 4.176 MB / 314.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,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,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 8.768e-05/0.4357, allocations: 118.1 kB / 458.4 MB, free: 4.062 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.436e-05/0.4358, allocations: 38.75 kB / 458.5 MB, free: 4.043 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.132e-05/0.4359, allocations: 43.75 kB / 458.5 MB, free: 4.027 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.4359, allocations: 3.844 kB / 458.5 MB, free: 4.027 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.4359, allocations: 0 / 458.5 MB, free: 4.027 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.4359, allocations: 3.984 kB / 458.5 MB, free: 4.023 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003304/0.4362, allocations: 417.3 kB / 458.9 MB, free: 3.777 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.4362, allocations: 0 / 458.9 MB, free: 3.777 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001895/0.4364, allocations: 40.8 kB / 459 MB, free: 3.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003167/0.4367, allocations: 137.8 kB / 459.1 MB, free: 3.734 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.4368, allocations: 3.938 kB / 459.1 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.4385, allocations: 2.024 MB / 461.1 MB, free: 2.379 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4385, allocations: 3.984 kB / 461.1 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008498/0.4393, allocations: 0.5892 MB / 461.7 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001157/0.4405, allocations: 1.136 MB / 462.9 MB, free: 17.71 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001544/0.4407, allocations: 145.1 kB / 463 MB, free: 17.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.155e-05/0.4408, allocations: 10.52 kB / 463 MB, free: 17.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.441, allocations: 13.06 kB / 463 MB, free: 17.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.83e-05/0.441, allocations: 29.67 kB / 463 MB, free: 17.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.4411, allocations: 12.47 kB / 463.1 MB, free: 17.56 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001715/0.4412, allocations: 188.2 kB / 463.2 MB, free: 17.47 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009872/0.4422, allocations: 125.5 kB / 463.4 MB, free: 17.45 MB / 330.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,rootMeanSquareVoltage.mean.y,meanCurrent.y) * 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.0001433/0.4424, allocations: 107.4 kB / 463.5 MB, free: 17.36 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000665/0.4431, allocations: 454.3 kB / 463.9 MB, free: 17.22 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4431, allocations: 0 / 463.9 MB, free: 17.22 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004078/0.4435, allocations: 312.2 kB / 464.2 MB, free: 17.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.4438, allocations: 52.05 kB / 464.3 MB, free: 17.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.4451, allocations: 0.5956 MB / 464.9 MB, free: 16.78 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004301/0.4456, allocations: 0.8618 MB / 465.7 MB, free: 16.01 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4456, allocations: 0 / 465.7 MB, free: 16.01 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse_res.mat does not exist to compare? outputFormat=mat