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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 221.3 MB / 235.5 MB, free: 2.973 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.0008573/0.0008571, allocations: 93.91 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.61e-05/2.612e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 50.41 MB / 394.4 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3313/0.4346, allocations: 85.06 MB / 479.4 MB, free: 2.328 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002393/0.4348, allocations: 87.94 kB / 479.5 MB, free: 2.242 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05517/0.49, allocations: 21.63 MB / 0.4894 GB, free: 12.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4901, allocations: 0 / 0.4894 GB, free: 12.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.211e-05/0.4902, allocations: 35.94 kB / 0.4894 GB, free: 12.39 MB / 378.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.002964/0.4931, allocations: 1.382 MB / 0.4908 GB, free: 10.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.4932, allocations: 16.02 kB / 0.4908 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002398/0.4935, allocations: 164.6 kB / 0.4909 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002926/0.4938, allocations: 150.2 kB / 0.4911 GB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001617/0.4954, allocations: 0.9455 MB / 0.492 GB, free: 9.633 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.884e-05/0.4955, allocations: 78.06 kB / 0.4921 GB, free: 9.555 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.4956, allocations: 100 kB / 0.4922 GB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002282/0.4979, allocations: 1.478 MB / 0.4936 GB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.498, allocations: 7.859 kB / 0.4936 GB, free: 7.891 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.4981, allocations: 44 kB / 0.4937 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.328e-05/0.4982, allocations: 50.03 kB / 0.4937 GB, free: 7.797 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001944/0.5001, allocations: 1.281 MB / 0.495 GB, free: 6.508 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006927/0.507, allocations: 4.996 MB / 0.4999 GB, free: 1.328 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001496/0.5086, allocations: 1.403 MB / 0.5012 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/0.5096, allocations: 0.7042 MB / 0.5019 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.95e-05/0.5097, allocations: 8.547 kB / 0.5019 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008241/0.5105, allocations: 0.5791 MB / 0.5025 GB, free: 14.49 MB / 394.7 MB Notification: Performance of pre-optimization done (n=72): time 2.465e-06/0.5106, allocations: 0 / 0.5025 GB, free: 14.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.001953/0.5125, allocations: 1.18 MB / 0.5036 GB, free: 13.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/0.5126, allocations: 93.88 kB / 0.5037 GB, free: 13.19 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/0.5136, allocations: 0.8244 MB / 0.5045 GB, free: 12.35 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.386e-05/0.5137, allocations: 41.7 kB / 0.5046 GB, free: 12.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004098/0.5141, allocations: 0.5152 MB / 0.5051 GB, free: 11.78 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.5143, allocations: 232.6 kB / 0.5053 GB, free: 11.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.049e-05/0.5144, allocations: 20 kB / 0.5053 GB, free: 11.53 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.5145, allocations: 337.9 kB / 0.5056 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005172/0.515, allocations: 377.3 kB / 0.506 GB, free: 10.83 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006103/0.5157, allocations: 0.5066 MB / 0.5065 GB, free: 10.27 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005719/0.5162, allocations: 415 kB / 0.5069 GB, free: 9.863 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5162, allocations: 3.938 kB / 0.5069 GB, free: 9.859 MB / 394.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001763/0.518, allocations: 1.206 MB / 0.5081 GB, free: 8.645 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.5181, allocations: 15.94 kB / 0.5081 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.5181, allocations: 4 kB / 0.5081 GB, free: 8.625 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008449/0.5189, allocations: 391.6 kB / 0.5085 GB, free: 8.242 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004926/0.5194, allocations: 119.8 kB / 0.5086 GB, free: 8.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005028/0.5245, allocations: 4.123 MB / 0.5126 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000569/0.525, allocations: 95.39 kB / 0.5127 GB, free: 3.773 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-05/0.5251, allocations: 27.94 kB / 0.5127 GB, free: 3.746 MB / 394.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.0002166/0.5253, allocations: 150.7 kB / 0.5129 GB, free: 3.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.5255, allocations: 86.97 kB / 0.5129 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003334/0.5258, allocations: 120.5 kB / 0.5131 GB, free: 3.379 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.5258, allocations: 11.94 kB / 0.5131 GB, free: 3.367 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.5258, allocations: 0 / 0.5131 GB, free: 3.367 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.5259, allocations: 7.984 kB / 0.5131 GB, free: 3.359 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003775/0.5296, allocations: 2.533 MB / 0.5156 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.5297, allocations: 7.953 kB / 0.5156 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004206/0.5301, allocations: 87.88 kB / 0.5156 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007911/0.5309, allocations: 388.7 kB / 0.516 GB, free: 300 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-05/0.5309, allocations: 15.98 kB / 0.516 GB, free: 284 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005098/0.5361, allocations: 4.072 MB / 0.52 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.5361, allocations: 4 kB / 0.52 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002691/0.5388, allocations: 1.846 MB / 0.5218 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005479/0.5393, allocations: 287.8 kB / 0.5221 GB, free: 9.895 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.5395, allocations: 12 kB / 0.5221 GB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004647/0.5399, allocations: 59.89 kB / 0.5222 GB, free: 9.824 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.5401, allocations: 72.61 kB / 0.5222 GB, free: 9.754 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.562e-05/0.5402, allocations: 27.98 kB / 0.5223 GB, free: 9.727 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009666/0.5412, allocations: 0.6514 MB / 0.5229 GB, free: 9.082 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5412, allocations: 0 / 0.5229 GB, free: 9.082 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001073/0.5423, allocations: 354.8 kB / 0.5232 GB, free: 8.734 MB / 410.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.00291/0.5452, allocations: 2.441 MB / 0.5256 GB, free: 6.258 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001945/0.5471, allocations: 1.192 MB / 0.5268 GB, free: 5.051 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5472, allocations: 256 / 0.5268 GB, free: 5.051 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.5483, allocations: 0.7717 MB / 0.5275 GB, free: 4.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.5493, allocations: 223.4 kB / 0.5277 GB, free: 4.055 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004227/0.5535, allocations: 2.282 MB / 0.53 GB, free: 1.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.5546, allocations: 1.407 MB / 0.5313 GB, free: 300 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004686/0.5551, allocations: 167.2 kB / 0.5315 GB, free: 128 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005561/0.5556, allocations: 415.4 kB / 0.5319 GB, free: 15.71 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5557, allocations: 0 / 0.5319 GB, free: 15.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3289/0.8846, allocations: 25.8 MB / 0.5571 GB, free: 124.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.8848, allocations: 237.5 kB / 0.5573 GB, free: 124.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.43/3.315, allocations: 0 / 0.5573 GB, free: 124.4 MB / 426.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