Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.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.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",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.0009523/0.0009523, allocations: 183.9 kB / 8.135 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.098/1.098, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009394/0.0009395, allocations: 92.75 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09009/0.09106, allocations: 55.83 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1771/0.2682, allocations: 50.38 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08692/0.3551, allocations: 88.52 MB / 475.5 MB, free: 14.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000178/0.3553, allocations: 83.89 kB / 475.6 MB, free: 14.16 MB / 362.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.05485/0.4102, allocations: 22.71 MB / 498.3 MB, free: 7.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.4103, allocations: 8 kB / 498.3 MB, free: 7.262 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001713/0.412, allocations: 310.4 kB / 498.6 MB, free: 6.957 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008107/0.4128, allocations: 0.5294 MB / 499.2 MB, free: 6.391 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.047e-05/0.4128, allocations: 35.98 kB / 499.2 MB, free: 6.355 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/0.413, allocations: 60 kB / 499.2 MB, free: 6.297 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00136/0.4144, allocations: 0.7225 MB / 500 MB, free: 5.574 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.4157, allocations: 0.8129 MB / 0.489 GB, free: 4.738 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.294e-05/0.4158, allocations: 3.906 kB / 0.4891 GB, free: 4.734 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.928e-05/0.4159, allocations: 4 kB / 0.4891 GB, free: 4.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.4159, allocations: 24 kB / 0.4891 GB, free: 4.707 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005201/0.4211, allocations: 3.398 MB / 0.4924 GB, free: 1.152 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.4223, allocations: 0.6778 MB / 0.4931 GB, free: 468 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006005/0.4229, allocations: 368 kB / 0.4934 GB, free: 88 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09382/0.5167, allocations: 97.02 kB / 0.4935 GB, free: 126.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005577/0.5173, allocations: 420.3 kB / 0.4939 GB, free: 126.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.364e-06/0.5173, allocations: 3.5 kB / 0.4939 GB, free: 126.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.001495/0.5188, allocations: 0.7841 MB / 0.4947 GB, free: 126.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.5189, allocations: 197.6 kB / 0.4949 GB, free: 126.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003303/0.5192, allocations: 346.5 kB / 0.4952 GB, free: 126.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/0.5193, allocations: 28.83 kB / 0.4952 GB, free: 126.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.5194, allocations: 358.2 kB / 0.4956 GB, free: 126.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.5196, allocations: 271.2 kB / 0.4958 GB, free: 126.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.5196, allocations: 0 / 0.4958 GB, free: 126.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.267e-05/0.5197, allocations: 375.2 kB / 0.4962 GB, free: 125.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003231/0.52, allocations: 220.8 kB / 0.4964 GB, free: 125.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003975/0.5204, allocations: 438.3 kB / 0.4968 GB, free: 125.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004794/0.5209, allocations: 289 kB / 0.4971 GB, free: 125.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.5209, allocations: 4.688 kB / 0.4971 GB, free: 125.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001434/0.5224, allocations: 0.8982 MB / 0.498 GB, free: 125.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.5224, allocations: 5.344 kB / 0.498 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.5224, allocations: 7.906 kB / 0.498 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007796/0.5232, allocations: 268.4 kB / 0.4982 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005646/0.5238, allocations: 149.1 kB / 0.4984 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003602/0.5274, allocations: 4.061 MB / 0.5023 GB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005461/0.5279, allocations: 98.47 kB / 0.5024 GB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.373e-05/0.528, allocations: 35.59 kB / 0.5025 GB, free: 122.9 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real rectifierQS.vQS.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 79 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 18,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001653/0.5282, allocations: 131.4 kB / 0.5026 GB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.852e-05/0.5283, allocations: 69.2 kB / 0.5027 GB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.5297, allocations: 0.8611 MB / 0.5035 GB, free: 122.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.5298, allocations: 6.938 kB / 0.5035 GB, free: 122.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.5298, allocations: 3.719 kB / 0.5035 GB, free: 122.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.5298, allocations: 7.141 kB / 0.5035 GB, free: 122.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00206/0.5318, allocations: 1.628 MB / 0.5051 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.5319, allocations: 3.844 kB / 0.5051 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000479/0.5323, allocations: 102.5 kB / 0.5052 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007006/0.5331, allocations: 268.2 kB / 0.5055 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.541e-05/0.5331, allocations: 9.812 kB / 0.5055 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003471/0.5366, allocations: 4.065 MB / 0.5094 GB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5366, allocations: 3.625 kB / 0.5094 GB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001785/0.5384, allocations: 1.252 MB / 0.5107 GB, free: 119.6 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002986/0.5414, allocations: 2.697 MB / 0.5133 GB, free: 118.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.5416, allocations: 208.8 kB / 0.5135 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.5417, allocations: 10.97 kB / 0.5135 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004833/0.5422, allocations: 34.52 kB / 0.5135 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.5423, allocations: 52.77 kB / 0.5136 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.684e-05/0.5424, allocations: 30.83 kB / 0.5136 GB, free: 118.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002106/0.5426, allocations: 264.4 kB / 0.5139 GB, free: 118.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001345/0.544, allocations: 288.5 kB / 0.5142 GB, free: 118.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.000205/0.5442, allocations: 155.3 kB / 0.5143 GB, free: 118.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.5454, allocations: 0.9155 MB / 0.5152 GB, free: 118.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5455, allocations: 0 / 0.5152 GB, free: 118.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007499/0.5462, allocations: 0.6017 MB / 0.5158 GB, free: 118.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003949/0.5466, allocations: 76.44 kB / 0.5159 GB, free: 118.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.5489, allocations: 1.188 MB / 0.517 GB, free: 117.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004956/0.5494, allocations: 1.057 MB / 0.518 GB, free: 117.1 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5494, allocations: 0 / 0.518 GB, free: 117.1 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat