Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001556/0.001557, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.591/1.591, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008364/0.0008364, allocations: 86.69 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.469e-05/1.472e-05, allocations: 0 / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.08642, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.318/0.4044, allocations: 84.83 MB / 448 MB, free: 10.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.4048, allocations: 69.66 kB / 448.1 MB, free: 10.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07837/0.4831, allocations: 31.82 MB / 479.9 MB, free: 444 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4832, allocations: 0 / 479.9 MB, free: 444 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001236/0.4833, allocations: 55.94 kB / 479.9 MB, free: 388 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 531 * Number of variables: 531 Notification: Performance of Generate backend data structure: time 0.00425/0.4876, allocations: 1.944 MB / 481.9 MB, free: 14.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.4876, allocations: 8.031 kB / 481.9 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005324/0.4882, allocations: 233.3 kB / 482.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/0.4902, allocations: 1.217 MB / 483.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.215e-05/0.4903, allocations: 72 kB / 483.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000238/0.4905, allocations: 116 kB / 483.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00322/0.4937, allocations: 1.769 MB / 485.3 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003705/0.4975, allocations: 2.235 MB / 487.5 MB, free: 8.793 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.665e-05/0.4975, allocations: 4 kB / 487.5 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/0.4977, allocations: 0 / 487.5 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.417e-05/0.4977, allocations: 52 kB / 487.6 MB, free: 8.738 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01126/0.509, allocations: 7.14 MB / 494.7 MB, free: 1.438 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002203/0.5112, allocations: 2.288 MB / 497 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001306/0.5126, allocations: 0.8912 MB / 497.9 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.657e-05/0.5127, allocations: 12.77 kB / 497.9 MB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.5127, allocations: 43.28 kB / 497.9 MB, free: 13.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 6.202e-06/0.5127, allocations: 4 kB / 498 MB, free: 13.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.004698/0.5174, allocations: 2.794 MB / 0.489 GB, free: 11.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.5175, allocations: 64.19 kB / 0.4891 GB, free: 11.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.5186, allocations: 0.6914 MB / 0.4897 GB, free: 10.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.447e-05/0.5187, allocations: 25.7 kB / 0.4898 GB, free: 10.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005661/0.5192, allocations: 0.8255 MB / 0.4906 GB, free: 9.441 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002615/0.5195, allocations: 311.3 kB / 0.4909 GB, free: 9.133 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.5196, allocations: 0 / 0.4909 GB, free: 9.133 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5197, allocations: 349.9 kB / 0.4912 GB, free: 8.785 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005992/0.5203, allocations: 462.4 kB / 0.4916 GB, free: 8.332 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007357/0.5211, allocations: 0.6321 MB / 0.4923 GB, free: 7.637 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007507/0.5218, allocations: 0.5449 MB / 0.4928 GB, free: 7.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5218, allocations: 0 / 0.4928 GB, free: 7.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002265/0.5241, allocations: 1.499 MB / 0.4943 GB, free: 5.566 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.5241, allocations: 11.95 kB / 0.4943 GB, free: 5.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/0.5242, allocations: 4 kB / 0.4943 GB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001/0.5252, allocations: 463 kB / 0.4947 GB, free: 5.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007356/0.5259, allocations: 171.8 kB / 0.4949 GB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007995/0.5339, allocations: 8.15 MB / 0.5028 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007668/0.5347, allocations: 31.95 kB / 0.5029 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.298e-05/0.5348, allocations: 32 kB / 0.5029 GB, free: 12.24 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002393/0.5351, allocations: 129.7 kB / 0.503 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001998/0.5371, allocations: 1.318 MB / 0.5043 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/0.5373, allocations: 98.86 kB / 0.5044 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002083/0.5394, allocations: 1.404 MB / 0.5058 GB, free: 9.246 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.5394, allocations: 8 kB / 0.5058 GB, free: 9.238 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5394, allocations: 4 kB / 0.5058 GB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.5394, allocations: 3.984 kB / 0.5058 GB, free: 9.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00513/0.5446, allocations: 3.136 MB / 0.5089 GB, free: 6.023 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.408e-05/0.5446, allocations: 0 / 0.5089 GB, free: 6.023 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005908/0.5452, allocations: 136 kB / 0.509 GB, free: 5.891 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009854/0.5462, allocations: 451 kB / 0.5094 GB, free: 5.438 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.334e-05/0.5463, allocations: 7.984 kB / 0.5094 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007715/0.554, allocations: 8.072 MB / 0.5173 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.5541, allocations: 96 / 0.5173 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003082/0.5571, allocations: 2.196 MB / 0.5194 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000524/0.5577, allocations: 283.8 kB / 0.5197 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.5578, allocations: 0 / 0.5197 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004303/0.5583, allocations: 39.89 kB / 0.5198 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.5585, allocations: 84.59 kB / 0.5198 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.89e-05/0.5585, allocations: 31.98 kB / 0.5199 GB, free: 10.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007415/0.5593, allocations: 0.5303 MB / 0.5204 GB, free: 9.672 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5593, allocations: 0 / 0.5204 GB, free: 9.672 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001526/0.5608, allocations: 352 kB / 0.5207 GB, free: 9.328 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (supplyL.inductor[2].i,supplyL.inductor[3].i,cDC1.v,cDC2.v) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003563/0.5644, allocations: 2.934 MB / 0.5236 GB, free: 6.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002442/0.5669, allocations: 1.743 MB / 0.5253 GB, free: 4.543 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5669, allocations: 448 / 0.5253 GB, free: 4.543 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001595/0.5685, allocations: 1.219 MB / 0.5265 GB, free: 3.273 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/0.57, allocations: 243.4 kB / 0.5267 GB, free: 3.039 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2136/0.7836, allocations: 3.322 MB / 0.53 GB, free: 116 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00182/0.7855, allocations: 1.75 MB / 0.5317 GB, free: 115.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007192/0.7862, allocations: 178.2 kB / 0.5318 GB, free: 115.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007015/0.7869, allocations: 0.6244 MB / 0.5324 GB, free: 115.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.012e-06/0.7869, allocations: 4 kB / 0.5325 GB, free: 115.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06004/0.847, allocations: 28.61 MB / 0.5604 GB, free: 113 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/0.8472, allocations: 145 kB / 0.5605 GB, free: 112.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.669/3.516, allocations: 0 / 0.5605 GB, free: 112.8 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat