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.001487/0.001487, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.203/2.203, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001181/0.00118, allocations: 97.16 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.713e-05/2.725e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3506, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.4847, allocations: 78.22 MB / 440.7 MB, free: 8.008 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.4851, allocations: 71.95 kB / 440.7 MB, free: 7.938 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03903/0.5241, allocations: 8.737 MB / 449.5 MB, free: 15.2 MB / 347.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.5242, allocations: 0 / 449.5 MB, free: 15.2 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.821e-05/0.5243, allocations: 13.64 kB / 449.5 MB, free: 15.19 MB / 347.1 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.001963/0.5262, allocations: 0.7675 MB / 450.2 MB, free: 14.38 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.5263, allocations: 12.03 kB / 450.3 MB, free: 14.37 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000195/0.5265, allocations: 63.25 kB / 450.3 MB, free: 14.3 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007276/0.5273, allocations: 363.4 kB / 450.7 MB, free: 13.91 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.43e-05/0.5273, allocations: 16 kB / 450.7 MB, free: 13.89 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.5274, allocations: 32 kB / 450.7 MB, free: 13.86 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001149/0.5286, allocations: 374.5 kB / 451.1 MB, free: 13.5 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.5298, allocations: 458.6 kB / 451.5 MB, free: 13.02 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.5298, allocations: 0 / 451.5 MB, free: 13.02 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.364e-05/0.5299, allocations: 0 / 451.5 MB, free: 13.02 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.099e-05/0.5299, allocations: 12 kB / 451.5 MB, free: 13.01 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004634/0.5346, allocations: 1.979 MB / 453.5 MB, free: 10.96 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.5359, allocations: 0.5747 MB / 454.1 MB, free: 10.35 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007922/0.5367, allocations: 357.8 kB / 454.4 MB, free: 9.996 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.977e-05/0.5368, allocations: 8.562 kB / 454.5 MB, free: 9.988 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.5368, allocations: 47.06 kB / 454.5 MB, free: 9.934 MB / 347.1 MB Notification: Performance of pre-optimization done (n=60): time 4.208e-06/0.5368, allocations: 0 / 454.5 MB, free: 9.934 MB / 347.1 MB Notification: Performance of matching and sorting (n=61): time 0.003211/0.5401, allocations: 1.136 MB / 455.6 MB, free: 8.738 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.5401, allocations: 59.97 kB / 455.7 MB, free: 8.664 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004724/0.5406, allocations: 270.4 kB / 456 MB, free: 8.398 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.218e-05/0.5407, allocations: 25.7 kB / 456 MB, free: 8.367 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002129/0.5409, allocations: 283.4 kB / 456.3 MB, free: 8.086 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/0.5412, allocations: 189.1 kB / 456.4 MB, free: 7.898 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.054e-05/0.5412, allocations: 0 / 456.4 MB, free: 7.898 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.5414, allocations: 334.8 kB / 456.8 MB, free: 7.562 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.5418, allocations: 145.1 kB / 456.9 MB, free: 7.422 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004403/0.5423, allocations: 174.8 kB / 457.1 MB, free: 7.246 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004287/0.5427, allocations: 146.1 kB / 457.2 MB, free: 7.102 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.5427, allocations: 4 kB / 457.2 MB, free: 7.098 MB / 347.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001655/0.5444, allocations: 0.5566 MB / 457.8 MB, free: 6.523 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.5445, allocations: 4 kB / 457.8 MB, free: 6.52 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.5445, allocations: 0 / 457.8 MB, free: 6.52 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.5457, allocations: 258.7 kB / 458 MB, free: 6.258 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/0.5463, allocations: 55.97 kB / 458.1 MB, free: 6.203 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009301/0.5556, allocations: 6.53 MB / 464.6 MB, free: 15.21 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005347/0.5562, allocations: 4 kB / 464.6 MB, free: 15.21 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.616e-05/0.5563, allocations: 21.86 kB / 464.7 MB, free: 15.19 MB / 363.1 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.0001851/0.5565, allocations: 109.5 kB / 464.8 MB, free: 15.07 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001529/0.558, allocations: 0.5409 MB / 465.3 MB, free: 14.52 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.5582, allocations: 47.44 kB / 465.4 MB, free: 14.47 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001687/0.5584, allocations: 57.06 kB / 465.4 MB, free: 14.41 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.5584, allocations: 4 kB / 465.4 MB, free: 14.41 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.5584, allocations: 7.953 kB / 465.4 MB, free: 14.4 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.5584, allocations: 3.984 kB / 465.4 MB, free: 14.4 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003038/0.5615, allocations: 1.174 MB / 466.6 MB, free: 13.16 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.5615, allocations: 0 / 466.6 MB, free: 13.16 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005785/0.5621, allocations: 59.91 kB / 466.7 MB, free: 13.11 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.5633, allocations: 244.3 kB / 466.9 MB, free: 12.86 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.776e-05/0.5634, allocations: 3.984 kB / 466.9 MB, free: 12.85 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009184/0.5726, allocations: 6.532 MB / 473.4 MB, free: 5.859 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.5727, allocations: 0 / 473.4 MB, free: 5.859 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.5751, allocations: 0.908 MB / 474.3 MB, free: 4.926 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003621/0.5755, allocations: 148.5 kB / 474.5 MB, free: 4.762 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.563e-05/0.5756, allocations: 15.92 kB / 474.5 MB, free: 4.746 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004509/0.5761, allocations: 8.188 kB / 474.5 MB, free: 4.738 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002152/0.5763, allocations: 52.58 kB / 474.6 MB, free: 4.684 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.714e-05/0.5764, allocations: 23.92 kB / 474.6 MB, free: 4.66 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0003432/0.5767, allocations: 208.6 kB / 474.8 MB, free: 4.457 MB / 363.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5768, allocations: 0 / 474.8 MB, free: 4.457 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001323/0.5781, allocations: 152 kB / 474.9 MB, free: 4.309 MB / 363.1 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.002825/0.5809, allocations: 1.465 MB / 476.4 MB, free: 2.809 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.5831, allocations: 0.9341 MB / 477.3 MB, free: 1.832 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.5831, allocations: 4.062 kB / 477.3 MB, free: 1.828 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00159/0.5847, allocations: 0.77 MB / 478.1 MB, free: 1.02 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006572/0.5854, allocations: 53.19 kB / 478.2 MB, free: 0.9648 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003558/0.589, allocations: 1.083 MB / 479.2 MB, free: 15.84 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006788/0.5897, allocations: 0.8867 MB / 480.1 MB, free: 14.92 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003763/0.5901, allocations: 172.1 kB / 480.3 MB, free: 14.75 MB / 379.1 MB Notification: Performance of SimCode: time 3.006e-06/0.5901, allocations: 0 / 480.3 MB, free: 14.75 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.116/3.706, allocations: 15.33 MB / 495.6 MB, free: 15.43 MB / 395.1 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