Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_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.0009319/0.000932, allocations: 178.4 kB / 8.697 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.492/1.492, allocations: 205.3 MB / 214.4 MB, free: 1.668 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.000875/0.0008752, allocations: 82.72 kB / 262.4 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.795e-05/1.797e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1005, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.4492, allocations: 78.47 MB / 441.6 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.4495, allocations: 73.08 kB / 441.7 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02239/0.4719, allocations: 8.743 MB / 450.5 MB, free: 9.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.4719, allocations: 0 / 450.5 MB, free: 9.57 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.644e-05/0.4719, allocations: 19.92 kB / 450.5 MB, free: 9.551 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.001135/0.4731, allocations: 0.7599 MB / 451.2 MB, free: 8.777 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.4731, allocations: 8.031 kB / 451.2 MB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.4733, allocations: 63.25 kB / 451.3 MB, free: 8.707 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004308/0.4737, allocations: 372.2 kB / 451.7 MB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.4737, allocations: 20 kB / 451.7 MB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.365e-05/0.4738, allocations: 28 kB / 451.7 MB, free: 8.301 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005855/0.4744, allocations: 373.3 kB / 452.1 MB, free: 8.078 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006523/0.475, allocations: 444.4 kB / 452.5 MB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.4751, allocations: 0 / 452.5 MB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.4751, allocations: 4 kB / 452.5 MB, free: 7.723 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.4751, allocations: 12.75 kB / 452.5 MB, free: 7.711 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002566/0.4777, allocations: 1.98 MB / 454.5 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000699/0.4784, allocations: 0.5749 MB / 455.1 MB, free: 5.648 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004271/0.4789, allocations: 356 kB / 455.4 MB, free: 5.414 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.212e-05/0.4789, allocations: 8.562 kB / 455.4 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.4789, allocations: 37.88 kB / 455.5 MB, free: 5.367 MB / 330.7 MB Notification: Performance of pre-optimization done (n=60): time 1.794e-06/0.479, allocations: 4 kB / 455.5 MB, free: 5.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.001839/0.4808, allocations: 1.133 MB / 456.6 MB, free: 4.418 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.4808, allocations: 67.89 kB / 456.7 MB, free: 4.336 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002658/0.4811, allocations: 266.7 kB / 456.9 MB, free: 4.125 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.445e-05/0.4812, allocations: 29.7 kB / 457 MB, free: 4.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.4813, allocations: 236.1 kB / 457.2 MB, free: 3.906 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.4814, allocations: 190.5 kB / 457.4 MB, free: 3.738 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.986e-05/0.4815, allocations: 0 / 457.4 MB, free: 3.738 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.4816, allocations: 358.4 kB / 457.7 MB, free: 3.398 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.4818, allocations: 138.2 kB / 457.9 MB, free: 3.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.4821, allocations: 179.8 kB / 458 MB, free: 3.207 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000226/0.4823, allocations: 154.1 kB / 458.2 MB, free: 3.109 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.4823, allocations: 0 / 458.2 MB, free: 3.109 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000919/0.4832, allocations: 0.5736 MB / 458.8 MB, free: 2.664 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.4832, allocations: 8.031 kB / 458.8 MB, free: 2.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.4833, allocations: 0 / 458.8 MB, free: 2.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006497/0.4839, allocations: 242.6 kB / 459 MB, free: 2.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.4842, allocations: 79.03 kB / 459.1 MB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005394/0.4896, allocations: 6.507 MB / 465.6 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.49, allocations: 12.09 kB / 465.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.49, allocations: 19.92 kB / 465.6 MB, free: 12.06 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.0001413/0.4902, allocations: 109 kB / 465.7 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008364/0.491, allocations: 0.5441 MB / 466.3 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.14e-05/0.4911, allocations: 43.44 kB / 466.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001431/0.4912, allocations: 57.22 kB / 466.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.4912, allocations: 7.938 kB / 466.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4913, allocations: 7.953 kB / 466.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.4913, allocations: 3.984 kB / 466.4 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001616/0.4929, allocations: 1.177 MB / 467.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.4929, allocations: 0 / 467.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/0.4932, allocations: 58.97 kB / 467.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000578/0.4938, allocations: 245.6 kB / 467.9 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.89e-05/0.4938, allocations: 7.984 kB / 467.9 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005155/0.499, allocations: 6.524 MB / 474.4 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.499, allocations: 0 / 474.4 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.5003, allocations: 0.9049 MB / 475.3 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001749/0.5005, allocations: 158.1 kB / 475.5 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.5005, allocations: 7.422 kB / 475.5 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.5008, allocations: 8 kB / 475.5 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.5009, allocations: 55.17 kB / 475.5 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.5009, allocations: 15.8 kB / 475.5 MB, free: 3.027 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001944/0.5011, allocations: 220.5 kB / 475.8 MB, free: 2.855 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5011, allocations: 0.5625 kB / 475.8 MB, free: 2.855 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008279/0.502, allocations: 152 kB / 475.9 MB, free: 2.707 MB / 346.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.001556/0.5035, allocations: 1.454 MB / 477.4 MB, free: 1.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.5048, allocations: 0.9261 MB / 478.3 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5048, allocations: 0 / 478.3 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000894/0.5057, allocations: 0.7757 MB / 479.1 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003728/0.5061, allocations: 58.81 kB / 479.1 MB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002094/0.5082, allocations: 1.059 MB / 480.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.5087, allocations: 0.8828 MB / 481.1 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001675/0.5088, allocations: 52.34 kB / 481.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002147/0.5091, allocations: 175.3 kB / 481.3 MB, free: 13.78 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5091, allocations: 0 / 481.3 MB, free: 13.78 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03568/0.5448, allocations: 10.76 MB / 492.1 MB, free: 3.004 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002925/0.5451, allocations: 130.4 kB / 492.2 MB, free: 2.816 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.29/2.835, allocations: 4 kB / 492.2 MB, free: 2.812 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat