Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.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.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_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.001553/0.001553, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.097/2.097, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001158/0.001157, allocations: 98.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.124e-05/3.154e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09687/0.09695, allocations: 47.58 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.534, allocations: 78.89 MB / 448.1 MB, free: 14.35 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.5343, allocations: 64.59 kB / 448.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03862/0.5729, allocations: 8.846 MB / 457 MB, free: 6.812 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.573, allocations: 0 / 457 MB, free: 6.812 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.843e-05/0.573, allocations: 12 kB / 457 MB, free: 6.801 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002063/0.5751, allocations: 0.7628 MB / 457.8 MB, free: 6.027 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.5752, allocations: 12.03 kB / 457.8 MB, free: 6.016 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003075/0.5755, allocations: 102.6 kB / 457.9 MB, free: 5.938 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002231/0.5757, allocations: 75.11 kB / 457.9 MB, free: 5.863 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008167/0.5766, allocations: 374.3 kB / 458.3 MB, free: 5.496 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.931e-05/0.5766, allocations: 44 kB / 458.3 MB, free: 5.473 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.5768, allocations: 48.12 kB / 458.4 MB, free: 5.441 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/0.5787, allocations: 0.5426 MB / 458.9 MB, free: 5.039 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.5788, allocations: 0 / 458.9 MB, free: 5.039 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.891e-05/0.5789, allocations: 19.81 kB / 459 MB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.438e-05/0.5789, allocations: 16 kB / 459 MB, free: 5.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.5802, allocations: 426.7 kB / 459.4 MB, free: 4.746 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004998/0.5852, allocations: 2.118 MB / 461.5 MB, free: 2.559 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.5866, allocations: 0.6066 MB / 462.1 MB, free: 1.918 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009358/0.5876, allocations: 385.8 kB / 462.5 MB, free: 1.535 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.694e-05/0.5876, allocations: 4.562 kB / 462.5 MB, free: 1.531 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.5877, allocations: 43.06 kB / 462.5 MB, free: 1.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=60): time 3.467e-06/0.5877, allocations: 4 kB / 462.5 MB, free: 1.477 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.003511/0.5912, allocations: 1.252 MB / 463.8 MB, free: 164 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.5913, allocations: 55.97 kB / 463.8 MB, free: 92 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006268/0.592, allocations: 311.6 kB / 464.2 MB, free: 15.78 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.218e-05/0.5921, allocations: 41.7 kB / 464.2 MB, free: 15.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/0.5923, allocations: 279.5 kB / 464.5 MB, free: 15.46 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002457/0.5926, allocations: 209 kB / 464.7 MB, free: 15.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.866e-05/0.5926, allocations: 8 kB / 464.7 MB, free: 15.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.5928, allocations: 330.8 kB / 465 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000448/0.5932, allocations: 149.1 kB / 465.1 MB, free: 14.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00049/0.5937, allocations: 191.9 kB / 465.3 MB, free: 14.58 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000481/0.5942, allocations: 171.1 kB / 465.5 MB, free: 14.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.5943, allocations: 0 / 465.5 MB, free: 14.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001801/0.5961, allocations: 0.5995 MB / 466.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/0.5961, allocations: 16.02 kB / 466.1 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.5962, allocations: 0 / 466.1 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.5974, allocations: 243.2 kB / 466.4 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005578/0.5979, allocations: 75.83 kB / 466.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009505/0.6075, allocations: 6.749 MB / 473.2 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00057/0.6081, allocations: 28.08 kB / 473.2 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.657e-05/0.6082, allocations: 16.52 kB / 473.2 MB, free: 6.121 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 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.0001858/0.6084, allocations: 128.9 kB / 473.3 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.6085, allocations: 47.44 kB / 473.4 MB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001859/0.6087, allocations: 68.95 kB / 473.5 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.6087, allocations: 4 kB / 473.5 MB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.6087, allocations: 4 kB / 473.5 MB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.6088, allocations: 11.92 kB / 473.5 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003239/0.612, allocations: 1.314 MB / 474.8 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.6121, allocations: 4 kB / 474.8 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005473/0.6126, allocations: 59.91 kB / 474.9 MB, free: 4.406 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/0.6138, allocations: 251.1 kB / 475.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.403e-05/0.6138, allocations: 16 kB / 475.1 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009445/0.6233, allocations: 6.755 MB / 481.9 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.6234, allocations: 3.938 kB / 481.9 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002687/0.6261, allocations: 0.9665 MB / 482.8 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003725/0.6265, allocations: 161.1 kB / 483 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.6266, allocations: 15.94 kB / 483 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004826/0.6271, allocations: 27.98 kB / 483 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.6273, allocations: 48.58 kB / 483.1 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.667e-05/0.6274, allocations: 19.98 kB / 483.1 MB, free: 11.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004875/0.6279, allocations: 258 kB / 483.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6279, allocations: 3.938 kB / 483.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001261/0.6292, allocations: 180 kB / 483.5 MB, free: 11.13 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 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.003186/0.6324, allocations: 1.537 MB / 485.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002354/0.6348, allocations: 0.9781 MB / 486.1 MB, free: 8.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.084e-06/0.6348, allocations: 4 kB / 486.1 MB, free: 8.516 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001756/0.6366, allocations: 0.8213 MB / 486.9 MB, free: 7.645 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006969/0.6373, allocations: 65.31 kB / 486.9 MB, free: 7.582 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004047/0.6414, allocations: 1.154 MB / 488.1 MB, free: 6.383 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007061/0.6422, allocations: 0.9024 MB / 489 MB, free: 5.453 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004006/0.6426, allocations: 187.3 kB / 489.2 MB, free: 5.27 MB / 362.7 MB Notification: Performance of SimCode: time 1.734e-06/0.6426, allocations: 0 / 489.2 MB, free: 5.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.997/3.639, allocations: 15.85 MB / 0.4932 GB, free: 5.395 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat