Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.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.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_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.001179/0.001179, allocations: 181 kB / 16.38 MB, free: 5.766 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.376/1.376, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000983/0.000983, allocations: 94.7 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000265/0.0002651, allocations: 12 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2684, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.3759, allocations: 80.53 MB / 482.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.3762, allocations: 76.53 kB / 482.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02311/0.3993, allocations: 9.113 MB / 491.3 MB, free: 6.656 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3994, allocations: 4 kB / 491.3 MB, free: 6.652 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.339e-05/0.3994, allocations: 12 kB / 491.3 MB, free: 6.641 MB / 362.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.00133/0.4008, allocations: 0.8182 MB / 492.1 MB, free: 5.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4008, allocations: 12.03 kB / 492.1 MB, free: 5.758 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001514/0.401, allocations: 103.7 kB / 492.2 MB, free: 5.648 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.4011, allocations: 71.16 kB / 492.3 MB, free: 5.578 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/0.4016, allocations: 372.8 kB / 492.7 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.332e-05/0.4016, allocations: 53.27 kB / 492.7 MB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.8e-05/0.4017, allocations: 48 kB / 492.8 MB, free: 5.074 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009325/0.4026, allocations: 0.5739 MB / 493.4 MB, free: 4.473 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.4027, allocations: 0 / 493.4 MB, free: 4.473 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-05/0.4027, allocations: 24 kB / 493.4 MB, free: 4.449 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.4028, allocations: 12 kB / 493.4 MB, free: 4.438 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008576/0.4036, allocations: 476.9 kB / 493.9 MB, free: 3.973 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002986/0.4066, allocations: 2.11 MB / 496 MB, free: 1.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009083/0.4075, allocations: 0.6415 MB / 496.6 MB, free: 1.098 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.4076, allocations: 8.562 kB / 496.6 MB, free: 1.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.4076, allocations: 43.06 kB / 496.7 MB, free: 1.039 MB / 362.7 MB Notification: Performance of pre-optimization done (n=60): time 2.404e-06/0.4076, allocations: 0 / 496.7 MB, free: 1.039 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.004063/0.4117, allocations: 1.983 MB / 498.6 MB, free: 14.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.4118, allocations: 59.97 kB / 498.7 MB, free: 14.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003739/0.4122, allocations: 316.9 kB / 499 MB, free: 14.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.999e-05/0.4122, allocations: 37.7 kB / 499 MB, free: 14.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.4124, allocations: 237.1 kB / 499.3 MB, free: 14.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.4125, allocations: 208.9 kB / 499.5 MB, free: 14.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/0.4125, allocations: 8 kB / 499.5 MB, free: 14.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.4127, allocations: 362.7 kB / 499.8 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.413, allocations: 169 kB / 0.4883 GB, free: 13.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.4134, allocations: 223.7 kB / 0.4885 GB, free: 13.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.4138, allocations: 178.2 kB / 0.4887 GB, free: 13.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.4138, allocations: 0 / 0.4887 GB, free: 13.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001221/0.415, allocations: 0.6851 MB / 0.4893 GB, free: 12.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.415, allocations: 4 kB / 0.4893 GB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.415, allocations: 4 kB / 0.4893 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007322/0.4158, allocations: 251.2 kB / 0.4896 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003092/0.4161, allocations: 67.89 kB / 0.4896 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006523/0.4226, allocations: 6.832 MB / 0.4963 GB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.423, allocations: 24.02 kB / 0.4963 GB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.43e-05/0.4231, allocations: 16 kB / 0.4964 GB, free: 4.695 MB / 378.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 () * Number of clocked 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.0003006/0.4234, allocations: 168.3 kB / 0.4965 GB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.074e-05/0.4235, allocations: 51.39 kB / 0.4966 GB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001294/0.4236, allocations: 73 kB / 0.4966 GB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.4236, allocations: 4 kB / 0.4966 GB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/0.4237, allocations: 11.88 kB / 0.4967 GB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.4237, allocations: 3.984 kB / 0.4967 GB, free: 4.383 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.4258, allocations: 1.357 MB / 0.498 GB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.4258, allocations: 0 / 0.498 GB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/0.4261, allocations: 55.97 kB / 0.498 GB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000667/0.4268, allocations: 259.5 kB / 0.4983 GB, free: 2.637 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.758e-05/0.4268, allocations: 15.98 kB / 0.4983 GB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2729/0.6997, allocations: 6.827 MB / 0.505 GB, free: 94.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.6998, allocations: 1.391 kB / 0.505 GB, free: 94.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/0.702, allocations: 1.042 MB / 0.506 GB, free: 94.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002547/0.7022, allocations: 166.4 kB / 0.5061 GB, free: 94.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.4e-05/0.7023, allocations: 10.72 kB / 0.5062 GB, free: 94.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002721/0.7026, allocations: 27.62 kB / 0.5062 GB, free: 94.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.7028, allocations: 51.27 kB / 0.5062 GB, free: 94.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/0.7028, allocations: 15.78 kB / 0.5062 GB, free: 94.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003397/0.7032, allocations: 256.6 kB / 0.5065 GB, free: 94.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7032, allocations: 0 / 0.5065 GB, free: 94.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001056/0.7042, allocations: 174.8 kB / 0.5067 GB, free: 94.03 MB / 378.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 () * Number of clocked 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.002377/0.7066, allocations: 1.604 MB / 0.5082 GB, free: 93.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001556/0.7082, allocations: 1.051 MB / 0.5092 GB, free: 92.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.7082, allocations: 0 / 0.5092 GB, free: 92.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009217/0.7091, allocations: 0.8417 MB / 0.5101 GB, free: 92.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000402/0.7096, allocations: 77.59 kB / 0.5101 GB, free: 92.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004694/0.7143, allocations: 3.574 MB / 0.5136 GB, free: 90.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004741/0.7147, allocations: 0.8969 MB / 0.5145 GB, free: 90.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001828/0.7149, allocations: 56.11 kB / 0.5146 GB, free: 90.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.7151, allocations: 176.4 kB / 0.5147 GB, free: 89.89 MB / 378.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7152, allocations: 0 / 0.5147 GB, free: 89.89 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02591/0.7411, allocations: 12.17 MB / 0.5266 GB, free: 82.66 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.7413, allocations: 204 kB / 0.5268 GB, free: 82.42 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.602/3.343, allocations: 288 / 0.5268 GB, free: 82.42 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat