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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001243, allocations: 202.2 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 225.6 MB / 234.8 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008682/0.0008683, allocations: 98.83 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.765e-05/1.756e-05, allocations: 4 kB / 343.8 MB, free: 8.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1171, allocations: 51.47 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.4808, allocations: 89.48 MB / 484.7 MB, free: 3.555 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001997/0.4811, allocations: 84.69 kB / 484.8 MB, free: 3.512 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05638/0.5374, allocations: 22.52 MB / 0.4955 GB, free: 1.285 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.5375, allocations: 1.688 kB / 0.4955 GB, free: 1.285 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.362e-05/0.5375, allocations: 16 kB / 0.4955 GB, free: 1.27 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.00306/0.5406, allocations: 1.157 MB / 0.4966 GB, free: 144 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.5407, allocations: 8.031 kB / 0.4966 GB, free: 136 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002083/0.5428, allocations: 340.5 kB / 0.4969 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.5439, allocations: 0.5376 MB / 0.4975 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.999e-05/0.544, allocations: 36 kB / 0.4975 GB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000201/0.5442, allocations: 63.91 kB / 0.4976 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00156/0.5458, allocations: 0.7212 MB / 0.4983 GB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.5473, allocations: 0.8116 MB / 0.499 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/0.5473, allocations: 4 kB / 0.4991 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.861e-05/0.5474, allocations: 0 / 0.4991 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.373e-05/0.5474, allocations: 24 kB / 0.4991 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006072/0.5535, allocations: 3.501 MB / 0.5025 GB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002656/0.5562, allocations: 1.817 MB / 0.5043 GB, free: 8.555 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000653/0.5569, allocations: 352 kB / 0.5046 GB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000255/0.5572, allocations: 190.9 kB / 0.5048 GB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008654/0.5581, allocations: 427.9 kB / 0.5052 GB, free: 7.535 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 5.26e-06/0.5581, allocations: 5.594 kB / 0.5052 GB, free: 7.531 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.002387/0.5605, allocations: 0.8371 MB / 0.506 GB, free: 6.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/0.5607, allocations: 196.7 kB / 0.5062 GB, free: 6.441 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006996/0.5614, allocations: 365.2 kB / 0.5066 GB, free: 6.082 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.012e-05/0.5615, allocations: 25.7 kB / 0.5066 GB, free: 6.051 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005924/0.5621, allocations: 415.5 kB / 0.507 GB, free: 5.637 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003355/0.5624, allocations: 268 kB / 0.5072 GB, free: 5.367 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.695e-05/0.5625, allocations: 0 / 0.5072 GB, free: 5.367 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002722/0.5628, allocations: 370.8 kB / 0.5076 GB, free: 4.996 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004336/0.5632, allocations: 214.6 kB / 0.5078 GB, free: 4.785 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006756/0.5639, allocations: 440 kB / 0.5082 GB, free: 4.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.5651, allocations: 364.2 kB / 0.5086 GB, free: 3.914 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.528e-05/0.5651, allocations: 4 kB / 0.5086 GB, free: 3.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002414/0.5676, allocations: 0.9545 MB / 0.5095 GB, free: 2.941 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.518e-05/0.5676, allocations: 8 kB / 0.5095 GB, free: 2.934 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.5676, allocations: 4 kB / 0.5095 GB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009007/0.5685, allocations: 259.9 kB / 0.5098 GB, free: 2.676 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006115/0.5692, allocations: 151.7 kB / 0.5099 GB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005501/0.5747, allocations: 4.194 MB / 0.514 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00082/0.5755, allocations: 83.3 kB / 0.5141 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.5757, allocations: 36 kB / 0.5141 GB, free: 13.99 MB / 394.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 (82): * Single equations (assignments): 80 * 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 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003717/0.5761, allocations: 135 kB / 0.5142 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002274/0.5784, allocations: 0.8481 MB / 0.5151 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001853/0.5786, allocations: 67.2 kB / 0.5151 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002191/0.5808, allocations: 0.8995 MB / 0.516 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.5808, allocations: 12 kB / 0.516 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.5808, allocations: 0 / 0.516 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.5808, allocations: 3.984 kB / 0.516 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003649/0.5845, allocations: 1.755 MB / 0.5177 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.5845, allocations: 0 / 0.5177 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005332/0.585, allocations: 103.9 kB / 0.5178 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007788/0.5858, allocations: 255.4 kB / 0.5181 GB, free: 9.828 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.26e-05/0.5859, allocations: 11.98 kB / 0.5181 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00508/0.591, allocations: 4.175 MB / 0.5222 GB, free: 5.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.5911, allocations: 8.016 kB / 0.5222 GB, free: 5.402 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002692/0.5938, allocations: 1.271 MB / 0.5234 GB, free: 4.102 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004699/0.5942, allocations: 212.1 kB / 0.5236 GB, free: 3.875 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.5944, allocations: 4 kB / 0.5236 GB, free: 3.871 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005277/0.595, allocations: 39.97 kB / 0.5237 GB, free: 3.832 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/0.5952, allocations: 68.62 kB / 0.5237 GB, free: 3.766 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.106e-05/0.5953, allocations: 31.92 kB / 0.5238 GB, free: 3.734 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004317/0.5957, allocations: 275 kB / 0.524 GB, free: 3.469 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5957, allocations: 0 / 0.524 GB, free: 3.469 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001335/0.597, allocations: 283.2 kB / 0.5243 GB, free: 3.191 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 (57): * Single equations (assignments): 52 * 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 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.00317/0.6002, allocations: 1.964 MB / 0.5262 GB, free: 1.191 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001814/0.6021, allocations: 0.9578 MB / 0.5271 GB, free: 224 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.6021, allocations: 0 / 0.5271 GB, free: 224 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.6031, allocations: 0.6456 MB / 0.5278 GB, free: 15.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000555/0.6037, allocations: 75.95 kB / 0.5278 GB, free: 15.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002898/0.6066, allocations: 1.289 MB / 0.5291 GB, free: 14.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006382/0.6072, allocations: 1.01 MB / 0.5301 GB, free: 13.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003598/0.6076, allocations: 73.14 kB / 0.5302 GB, free: 13.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004049/0.608, allocations: 315.3 kB / 0.5305 GB, free: 12.73 MB / 410.7 MB Notification: Performance of SimCode: time 7.01e-07/0.608, allocations: 4 kB / 0.5305 GB, free: 12.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04584/0.6539, allocations: 15.98 MB / 0.5461 GB, free: 12.93 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/0.6541, allocations: 158.7 kB / 0.5462 GB, free: 12.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.485/3.139, allocations: 2.672 kB / 0.5462 GB, free: 12.73 MB / 426.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