Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.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.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_DiodeCenterTap2mPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_DiodeCenterTap2mPulse",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.0009398/0.0009398, allocations: 182.6 kB / 8.132 MB, free: 2.219 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.102/1.102, allocations: 221.4 MB / 229.9 MB, free: 3.289 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.000951/0.000951, allocations: 100.5 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09185/0.09283, allocations: 55.83 MB / 336.6 MB, free: 9.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.2731, allocations: 50.39 MB / 387 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08571/0.3589, allocations: 84.32 MB / 471.3 MB, free: 2.398 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.3592, allocations: 87.88 kB / 471.4 MB, free: 2.312 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: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.05547/0.4146, allocations: 22.59 MB / 494 MB, free: 11.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.4147, allocations: 8 kB / 494 MB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003839/0.4151, allocations: 150.2 kB / 494.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001714/0.4168, allocations: 0.9533 MB / 495.1 MB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.842e-05/0.4169, allocations: 36 kB / 495.2 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001902/0.4171, allocations: 71.84 kB / 495.2 MB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001964/0.419, allocations: 1.246 MB / 496.5 MB, free: 9.039 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002078/0.4211, allocations: 1.349 MB / 497.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.4212, allocations: 3.938 kB / 497.8 MB, free: 7.609 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.435e-05/0.4213, allocations: 4 kB / 497.8 MB, free: 7.605 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.826e-05/0.4213, allocations: 46.05 kB / 497.9 MB, free: 7.559 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00665/0.428, allocations: 4.824 MB / 0.4909 GB, free: 2.566 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.4291, allocations: 0.8394 MB / 0.4917 GB, free: 1.715 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009696/0.4301, allocations: 0.7084 MB / 0.4924 GB, free: 1.004 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.194e-05/0.4301, allocations: 12.64 kB / 0.4924 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007095/0.4308, allocations: 0.5487 MB / 0.493 GB, free: 436 kB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 2.765e-06/0.4308, allocations: 0 / 0.493 GB, free: 436 kB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.1016/0.5325, allocations: 1.145 MB / 0.4941 GB, free: 129.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.5325, allocations: 85.27 kB / 0.4942 GB, free: 129.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008581/0.5334, allocations: 0.7773 MB / 0.4949 GB, free: 129.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/0.5334, allocations: 25.7 kB / 0.495 GB, free: 129.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002281/0.5337, allocations: 413.2 kB / 0.4954 GB, free: 129.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.5338, allocations: 223.9 kB / 0.4956 GB, free: 129.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.45e-05/0.5339, allocations: 0 / 0.4956 GB, free: 129.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.321e-05/0.5339, allocations: 339.6 kB / 0.4959 GB, free: 128.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004077/0.5343, allocations: 372.8 kB / 0.4962 GB, free: 128.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004449/0.5348, allocations: 0.5084 MB / 0.4967 GB, free: 128.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004394/0.5352, allocations: 409 kB / 0.4971 GB, free: 128.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.5352, allocations: 2.312 kB / 0.4971 GB, free: 128.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001351/0.5366, allocations: 1.175 MB / 0.4983 GB, free: 128.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.5366, allocations: 10.25 kB / 0.4983 GB, free: 128.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.5366, allocations: 6.797 kB / 0.4983 GB, free: 128.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000747/0.5374, allocations: 396 kB / 0.4987 GB, free: 128.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004693/0.5379, allocations: 122.4 kB / 0.4988 GB, free: 128.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003441/0.5413, allocations: 3.692 MB / 0.5024 GB, free: 127.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004569/0.5418, allocations: 66.14 kB / 0.5025 GB, free: 127.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.844e-05/0.5418, allocations: 26.66 kB / 0.5025 GB, free: 127.4 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 (58): * Single equations (assignments): 57 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.0001295/0.542, allocations: 128.4 kB / 0.5026 GB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.5421, allocations: 98.05 kB / 0.5027 GB, free: 127.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001736/0.5423, allocations: 109.4 kB / 0.5028 GB, free: 127.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.5423, allocations: 7.344 kB / 0.5028 GB, free: 127.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.5423, allocations: 0 / 0.5028 GB, free: 127.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.5423, allocations: 3.609 kB / 0.5028 GB, free: 127.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.5449, allocations: 2.331 MB / 0.5051 GB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.5449, allocations: 2.719 kB / 0.5051 GB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004101/0.5453, allocations: 88.08 kB / 0.5052 GB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007358/0.5461, allocations: 398.2 kB / 0.5056 GB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.69e-05/0.5461, allocations: 11.75 kB / 0.5056 GB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003294/0.5494, allocations: 3.639 MB / 0.5091 GB, free: 125.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.5495, allocations: 0 / 0.5091 GB, free: 125.6 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001829/0.5513, allocations: 1.854 MB / 0.5109 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002409/0.5537, allocations: 2.871 MB / 0.5137 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003519/0.5541, allocations: 277.4 kB / 0.514 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.5542, allocations: 4.938 kB / 0.514 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004338/0.5547, allocations: 36.83 kB / 0.514 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.5548, allocations: 57.27 kB / 0.5141 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.677e-05/0.5549, allocations: 19.03 kB / 0.5141 GB, free: 124.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006641/0.5555, allocations: 0.6113 MB / 0.5147 GB, free: 124.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001375/0.5569, allocations: 317.4 kB / 0.515 GB, free: 124.6 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 (45): * Single equations (assignments): 41 * 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 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001859/0.5571, allocations: 134.5 kB / 0.5151 GB, free: 124.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.5587, allocations: 1.11 MB / 0.5162 GB, free: 124.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5587, allocations: 1.062 kB / 0.5162 GB, free: 124.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008779/0.5596, allocations: 0.6845 MB / 0.5169 GB, free: 124.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007908/0.5604, allocations: 185.7 kB / 0.5171 GB, free: 124 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003744/0.5641, allocations: 1.88 MB / 0.5189 GB, free: 123.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001115/0.5653, allocations: 1.446 MB / 0.5203 GB, free: 122.5 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5653, allocations: 3.469 kB / 0.5203 GB, free: 122.5 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_DiodeCenterTap2mPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_DiodeCenterTap2mPulse.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.DiodeCenterTap2mPulse_res.mat does not exist to compare? outputFormat=mat