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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 175.1 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.898 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.0008622/0.0008621, allocations: 89.2 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.321e-05/2.322e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09465/0.09469, allocations: 50.42 MB / 394.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3095/0.4042, allocations: 89.26 MB / 483.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.4045, allocations: 83.95 kB / 483.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05497/0.4595, allocations: 22.04 MB / 0.4939 GB, free: 7.902 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4595, allocations: 0 / 0.4939 GB, free: 7.902 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.532e-05/0.4596, allocations: 24 kB / 0.4939 GB, free: 7.879 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.002316/0.4619, allocations: 1.138 MB / 0.495 GB, free: 6.691 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.4619, allocations: 12.03 kB / 0.495 GB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002355/0.4622, allocations: 162.1 kB / 0.4952 GB, free: 6.512 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001513/0.4637, allocations: 294.5 kB / 0.4955 GB, free: 6.223 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007687/0.4645, allocations: 0.5256 MB / 0.496 GB, free: 5.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.448e-05/0.4646, allocations: 77.95 kB / 0.496 GB, free: 5.582 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.4647, allocations: 108 kB / 0.4961 GB, free: 5.477 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.4663, allocations: 0.9613 MB / 0.4971 GB, free: 4.488 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.4664, allocations: 3.906 kB / 0.4971 GB, free: 4.484 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.562e-05/0.4665, allocations: 47.98 kB / 0.4971 GB, free: 4.438 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.4665, allocations: 24 kB / 0.4972 GB, free: 4.414 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.4678, allocations: 0.7811 MB / 0.4979 GB, free: 3.629 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004948/0.4727, allocations: 3.593 MB / 0.5014 GB, free: 15.87 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002012/0.4748, allocations: 1.863 MB / 0.5032 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007066/0.4755, allocations: 416 kB / 0.5036 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001013/0.4756, allocations: 93.89 kB / 0.5037 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006786/0.4763, allocations: 465.5 kB / 0.5042 GB, free: 12.76 MB / 394.7 MB Notification: Performance of pre-optimization done (n=84): time 2.345e-06/0.4763, allocations: 0 / 0.5042 GB, free: 12.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=84): time 0.00162/0.4779, allocations: 0.8293 MB / 0.505 GB, free: 11.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.992e-05/0.478, allocations: 196.7 kB / 0.5052 GB, free: 11.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004268/0.4785, allocations: 395.8 kB / 0.5055 GB, free: 11.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.913e-05/0.4785, allocations: 45.73 kB / 0.5056 GB, free: 11.23 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002431/0.4788, allocations: 407.7 kB / 0.506 GB, free: 10.83 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001966/0.479, allocations: 283.9 kB / 0.5063 GB, free: 10.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.765e-05/0.479, allocations: 16 kB / 0.5063 GB, free: 10.53 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4792, allocations: 370.8 kB / 0.5066 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00039/0.4796, allocations: 234 kB / 0.5068 GB, free: 9.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005295/0.4801, allocations: 451.4 kB / 0.5073 GB, free: 9.402 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004651/0.4806, allocations: 286 kB / 0.5075 GB, free: 9.121 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4806, allocations: 4 kB / 0.5076 GB, free: 9.117 MB / 394.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.0016/0.4822, allocations: 0.9584 MB / 0.5085 GB, free: 8.145 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.4822, allocations: 9.562 kB / 0.5085 GB, free: 8.137 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.4823, allocations: 4 kB / 0.5085 GB, free: 8.133 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008044/0.4831, allocations: 267.9 kB / 0.5088 GB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005646/0.4836, allocations: 147.7 kB / 0.5089 GB, free: 7.723 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004711/0.4884, allocations: 4.379 MB / 0.5132 GB, free: 3.074 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00062/0.489, allocations: 103.2 kB / 0.5133 GB, free: 2.973 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.862e-05/0.4891, allocations: 35.98 kB / 0.5133 GB, free: 2.938 MB / 394.7 MB 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.0001816/0.4893, allocations: 165.8 kB / 0.5135 GB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.625e-05/0.4894, allocations: 67.2 kB / 0.5135 GB, free: 2.703 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.491, allocations: 0.9069 MB / 0.5144 GB, free: 1.785 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.4911, allocations: 12 kB / 0.5144 GB, free: 1.773 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.4911, allocations: 0 / 0.5144 GB, free: 1.773 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.4911, allocations: 3.984 kB / 0.5144 GB, free: 1.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.4939, allocations: 1.869 MB / 0.5163 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4939, allocations: 4.188 kB / 0.5163 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004495/0.4944, allocations: 103.9 kB / 0.5164 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007323/0.4951, allocations: 269.5 kB / 0.5166 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.078e-05/0.4952, allocations: 20 kB / 0.5166 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004503/0.4997, allocations: 4.338 MB / 0.5209 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4997, allocations: 0 / 0.5209 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/0.5018, allocations: 1.298 MB / 0.5221 GB, free: 9.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003134/0.5021, allocations: 212.1 kB / 0.5223 GB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.867e-05/0.5022, allocations: 23.98 kB / 0.5224 GB, free: 9.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004595/0.5026, allocations: 48.16 kB / 0.5224 GB, free: 9.184 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.5028, allocations: 64.69 kB / 0.5225 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.998e-05/0.5029, allocations: 35.97 kB / 0.5225 GB, free: 9.086 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003227/0.5032, allocations: 301.6 kB / 0.5228 GB, free: 8.793 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5032, allocations: 0 / 0.5228 GB, free: 8.793 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009728/0.5042, allocations: 315.1 kB / 0.5231 GB, free: 8.484 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.002388/0.5066, allocations: 2.051 MB / 0.5251 GB, free: 6.391 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.5082, allocations: 1.015 MB / 0.5261 GB, free: 5.344 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5082, allocations: 0 / 0.5261 GB, free: 5.344 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.5093, allocations: 0.691 MB / 0.5268 GB, free: 4.629 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004861/0.5098, allocations: 102.2 kB / 0.5269 GB, free: 4.527 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.5124, allocations: 1.359 MB / 0.5282 GB, free: 3.125 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/0.5131, allocations: 1.018 MB / 0.5292 GB, free: 2.082 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003445/0.5134, allocations: 81.31 kB / 0.5293 GB, free: 2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003935/0.5138, allocations: 315.3 kB / 0.5296 GB, free: 1.691 MB / 410.7 MB Notification: Performance of SimCode: time 3.9e-07/0.5138, allocations: 0 / 0.5296 GB, free: 1.691 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03521/0.549, allocations: 17.55 MB / 0.5467 GB, free: 412 kB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.5492, allocations: 193.1 kB / 0.5469 GB, free: 184 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.423/2.973, allocations: 0 / 0.5469 GB, free: 184 kB / 426.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