Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.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.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",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.0009575/0.0009576, allocations: 186.1 kB / 8.14 MB, free: 2.211 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.11/1.11, allocations: 221.4 MB / 229.9 MB, free: 3.133 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.0008905/0.0008905, allocations: 99.61 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08934/0.09027, allocations: 55.85 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1771/0.2674, allocations: 50.39 MB / 387 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08438/0.3518, allocations: 84.8 MB / 471.8 MB, free: 1.953 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.3521, allocations: 89.39 kB / 471.9 MB, free: 1.867 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.05537/0.4075, allocations: 21.7 MB / 493.6 MB, free: 12.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.4075, allocations: 12 kB / 493.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003914/0.4079, allocations: 134.4 kB / 493.8 MB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00412/0.4121, allocations: 1.674 MB / 495.4 MB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.356e-05/0.4121, allocations: 36 kB / 495.5 MB, free: 10.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.4123, allocations: 60 kB / 495.5 MB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00198/0.4143, allocations: 1.144 MB / 496.7 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00196/0.4163, allocations: 1.271 MB / 497.9 MB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.907e-05/0.4163, allocations: 0 / 497.9 MB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.442e-05/0.4164, allocations: 7.906 kB / 497.9 MB, free: 7.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-05/0.4165, allocations: 45.98 kB / 498 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006285/0.4228, allocations: 4.184 MB / 0.4904 GB, free: 3.273 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.424, allocations: 0.8819 MB / 0.4913 GB, free: 2.387 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.4251, allocations: 0.8065 MB / 0.492 GB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.095e-05/0.4252, allocations: 12.59 kB / 0.4921 GB, free: 1.562 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007961/0.426, allocations: 0.5495 MB / 0.4926 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of pre-optimization done (n=75): time 2.635e-06/0.426, allocations: 0 / 0.4926 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of matching and sorting (n=75): time 0.1051/0.5311, allocations: 1.201 MB / 0.4938 GB, free: 129.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/0.5312, allocations: 114.8 kB / 0.4939 GB, free: 129.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007998/0.532, allocations: 0.671 MB / 0.4945 GB, free: 129.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.5321, allocations: 25.7 kB / 0.4946 GB, free: 129.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.5323, allocations: 385.7 kB / 0.4949 GB, free: 129.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.5325, allocations: 231.2 kB / 0.4951 GB, free: 129.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.394e-05/0.5325, allocations: 0 / 0.4951 GB, free: 129.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.486e-05/0.5326, allocations: 389.9 kB / 0.4955 GB, free: 128.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004272/0.533, allocations: 383.9 kB / 0.4959 GB, free: 128.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004641/0.5335, allocations: 0.5132 MB / 0.4964 GB, free: 128.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004877/0.534, allocations: 426.2 kB / 0.4968 GB, free: 128.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.534, allocations: 2.562 kB / 0.4968 GB, free: 128.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001505/0.5355, allocations: 1.228 MB / 0.498 GB, free: 128.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.5356, allocations: 6.969 kB / 0.498 GB, free: 128.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.5356, allocations: 3.562 kB / 0.498 GB, free: 128.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009488/0.5365, allocations: 494.6 kB / 0.4985 GB, free: 128.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003521/0.5369, allocations: 95.12 kB / 0.4986 GB, free: 128.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004761/0.5417, allocations: 4.777 MB / 0.5032 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004603/0.5421, allocations: 70.48 kB / 0.5033 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-05/0.5422, allocations: 25.28 kB / 0.5033 GB, free: 127.3 MB / 378.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: 15 ($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_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * 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 {6 32} Notification: Performance of prepare postOptimizeDAE: time 0.0001391/0.5423, allocations: 129.5 kB / 0.5034 GB, free: 127.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.802e-05/0.5424, allocations: 88.81 kB / 0.5035 GB, free: 127.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001794/0.5426, allocations: 101.3 kB / 0.5036 GB, free: 127.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.5426, allocations: 7.188 kB / 0.5036 GB, free: 127.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.5427, allocations: 6.266 kB / 0.5036 GB, free: 127.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.5427, allocations: 2.766 kB / 0.5036 GB, free: 127.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.5456, allocations: 2.443 MB / 0.506 GB, free: 126.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5457, allocations: 2.375 kB / 0.506 GB, free: 126.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002963/0.546, allocations: 59.83 kB / 0.5061 GB, free: 126.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008603/0.5468, allocations: 479.1 kB / 0.5065 GB, free: 126.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.578e-05/0.5469, allocations: 0 / 0.5065 GB, free: 126.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004588/0.5515, allocations: 4.73 MB / 0.5112 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.5515, allocations: 0 / 0.5112 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001876/0.5534, allocations: 1.873 MB / 0.513 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002574/0.556, allocations: 2.885 MB / 0.5158 GB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003579/0.5563, allocations: 264.7 kB / 0.5161 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.5565, allocations: 6.25 kB / 0.5161 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.5569, allocations: 32.44 kB / 0.5161 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.557, allocations: 56.17 kB / 0.5162 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.631e-05/0.5571, allocations: 21.75 kB / 0.5162 GB, free: 124 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005822/0.5577, allocations: 0.5272 MB / 0.5167 GB, free: 123.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001564/0.5592, allocations: 308 kB / 0.517 GB, free: 123.7 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: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.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 (38): * Single equations (assignments): 34 * 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 {6 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001794/0.5594, allocations: 114.6 kB / 0.5171 GB, free: 123.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.561, allocations: 1.138 MB / 0.5182 GB, free: 123.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.561, allocations: 1.25 kB / 0.5182 GB, free: 123.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009679/0.562, allocations: 0.7016 MB / 0.5189 GB, free: 122.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008289/0.5628, allocations: 213.6 kB / 0.5191 GB, free: 122.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003168/0.566, allocations: 1.792 MB / 0.5208 GB, free: 122.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008563/0.5669, allocations: 1.382 MB / 0.5222 GB, free: 121.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5669, allocations: 0 / 0.5222 GB, free: 121.3 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat