Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009712/0.0009712, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.114/1.114, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000783/0.000783, allocations: 92.33 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09294/0.09375, allocations: 56.9 MB / 343.2 MB, free: 8.641 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08443/0.1782, allocations: 51.47 MB / 394.7 MB, free: 5.117 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2135/0.3917, allocations: 89.4 MB / 484.1 MB, free: 4.051 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001696/0.3919, allocations: 81.69 kB / 484.2 MB, free: 4.008 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.05355/0.4455, allocations: 23.45 MB / 0.4957 GB, free: 0.875 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.4455, allocations: 8 kB / 0.4957 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002033/0.4476, allocations: 354.3 kB / 0.4961 GB, free: 0.543 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008073/0.4484, allocations: 0.5413 MB / 0.4966 GB, free: 72 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/0.4485, allocations: 32 kB / 0.4966 GB, free: 40 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.4486, allocations: 56.05 kB / 0.4967 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001289/0.4499, allocations: 0.7327 MB / 0.4974 GB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.4513, allocations: 0.7976 MB / 0.4982 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.4514, allocations: 7.906 kB / 0.4982 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.17e-05/0.4514, allocations: 2.438 kB / 0.4982 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/0.4515, allocations: 27.94 kB / 0.4982 GB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004965/0.4564, allocations: 3.5 MB / 0.5016 GB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.4576, allocations: 0.6582 MB / 0.5023 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005895/0.4582, allocations: 383.9 kB / 0.5027 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001515/0.4583, allocations: 174.8 kB / 0.5028 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005888/0.4589, allocations: 420 kB / 0.5032 GB, free: 9.742 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.234e-06/0.4589, allocations: 0 / 0.5032 GB, free: 9.742 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.00164/0.4606, allocations: 0.7927 MB / 0.504 GB, free: 8.938 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/0.4607, allocations: 188.7 kB / 0.5042 GB, free: 8.711 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003709/0.4611, allocations: 365.1 kB / 0.5045 GB, free: 8.348 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.922e-05/0.4611, allocations: 25.7 kB / 0.5046 GB, free: 8.316 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.4613, allocations: 363.5 kB / 0.5049 GB, free: 7.953 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.4615, allocations: 264 kB / 0.5051 GB, free: 7.691 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.4615, allocations: 0 / 0.5051 GB, free: 7.691 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.4617, allocations: 366.8 kB / 0.5055 GB, free: 7.324 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003689/0.462, allocations: 230 kB / 0.5057 GB, free: 7.098 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005052/0.4626, allocations: 441.4 kB / 0.5061 GB, free: 6.582 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005374/0.4631, allocations: 291 kB / 0.5064 GB, free: 6.301 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4631, allocations: 13.25 kB / 0.5064 GB, free: 6.289 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001622/0.4647, allocations: 0.8958 MB / 0.5073 GB, free: 5.379 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.4648, allocations: 4 kB / 0.5073 GB, free: 5.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.4648, allocations: 4 kB / 0.5073 GB, free: 5.371 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008282/0.4656, allocations: 267.7 kB / 0.5076 GB, free: 5.105 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005925/0.4662, allocations: 155.7 kB / 0.5077 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004379/0.4706, allocations: 4.067 MB / 0.5117 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005516/0.4712, allocations: 87.25 kB / 0.5118 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.166e-05/0.4712, allocations: 36 kB / 0.5118 GB, free: 0.5391 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.0001879/0.4714, allocations: 142.3 kB / 0.5119 GB, free: 404 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.234e-05/0.4715, allocations: 63.25 kB / 0.512 GB, free: 340 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/0.4732, allocations: 0.8664 MB / 0.5128 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.4732, allocations: 12 kB / 0.5129 GB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.4733, allocations: 0 / 0.5129 GB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.4733, allocations: 7.984 kB / 0.5129 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002475/0.4757, allocations: 1.629 MB / 0.5145 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.4758, allocations: 0 / 0.5145 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004932/0.4763, allocations: 103.9 kB / 0.5146 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007687/0.477, allocations: 269.4 kB / 0.5148 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.241e-05/0.4771, allocations: 9.484 kB / 0.5148 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004252/0.4814, allocations: 4.061 MB / 0.5188 GB, free: 9.086 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4814, allocations: 0 / 0.5188 GB, free: 9.086 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001973/0.4834, allocations: 1.262 MB / 0.52 GB, free: 7.797 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003517/0.4869, allocations: 2.693 MB / 0.5227 GB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002605/0.4872, allocations: 216 kB / 0.5229 GB, free: 4.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.965e-05/0.4873, allocations: 0 / 0.5229 GB, free: 4.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004697/0.4877, allocations: 39.97 kB / 0.5229 GB, free: 4.801 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.4879, allocations: 52.7 kB / 0.5229 GB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.354e-05/0.4879, allocations: 31.92 kB / 0.523 GB, free: 4.719 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002638/0.4882, allocations: 271.2 kB / 0.5232 GB, free: 4.453 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001471/0.4897, allocations: 303.1 kB / 0.5235 GB, free: 4.156 MB / 394.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.0002534/0.4899, allocations: 156 kB / 0.5237 GB, free: 3.992 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.4913, allocations: 0.9118 MB / 0.5246 GB, free: 3.059 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4914, allocations: 5.062 kB / 0.5246 GB, free: 3.055 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008419/0.4922, allocations: 0.6058 MB / 0.5252 GB, free: 2.426 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004056/0.4926, allocations: 71.69 kB / 0.5252 GB, free: 2.363 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.495, allocations: 1.192 MB / 0.5264 GB, free: 1.148 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000656/0.4957, allocations: 1.068 MB / 0.5274 GB, free: 52 kB / 394.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4957, allocations: 4 kB / 0.5274 GB, free: 48 kB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat