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.00153/0.001529, allocations: 185.4 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.938/1.938, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001182/0.001182, allocations: 93.28 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004015/0.0004015, allocations: 15.98 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3292, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1254/0.4546, allocations: 78.99 MB / 453.6 MB, free: 1.758 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.4549, allocations: 75.97 kB / 453.7 MB, free: 1.684 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0401/0.495, allocations: 8.82 MB / 462.5 MB, free: 8.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.98e-06/0.4951, allocations: 0 / 462.5 MB, free: 8.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.719e-05/0.4951, allocations: 15.94 kB / 462.5 MB, free: 8.785 MB / 346.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.002228/0.4974, allocations: 0.8144 MB / 463.3 MB, free: 7.922 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/0.4974, allocations: 12.03 kB / 463.3 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002661/0.4977, allocations: 107.6 kB / 463.5 MB, free: 7.797 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.4979, allocations: 79.11 kB / 463.5 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007583/0.4987, allocations: 376.8 kB / 463.9 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.279e-05/0.4988, allocations: 45.31 kB / 463.9 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.4989, allocations: 48 kB / 464 MB, free: 7.215 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.5005, allocations: 0.5693 MB / 464.6 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.5006, allocations: 0 / 464.6 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.111e-05/0.5007, allocations: 24 kB / 464.6 MB, free: 6.594 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.5007, allocations: 12 kB / 464.6 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/0.5022, allocations: 473 kB / 465.1 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004944/0.5072, allocations: 2.125 MB / 467.2 MB, free: 3.906 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/0.5089, allocations: 0.6292 MB / 467.8 MB, free: 3.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.039e-05/0.509, allocations: 4.562 kB / 467.8 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.661e-05/0.509, allocations: 43.08 kB / 467.9 MB, free: 3.195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=60): time 3.707e-06/0.509, allocations: 0 / 467.9 MB, free: 3.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.00725/0.5163, allocations: 1.987 MB / 469.8 MB, free: 1.086 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.5164, allocations: 55.97 kB / 469.9 MB, free: 1.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005787/0.517, allocations: 320.8 kB / 470.2 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.677e-05/0.5171, allocations: 41.7 kB / 470.3 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.5173, allocations: 283.5 kB / 470.5 MB, free: 384 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/0.5176, allocations: 205 kB / 470.7 MB, free: 176 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.62e-05/0.5176, allocations: 8 kB / 470.7 MB, free: 168 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.5178, allocations: 334.8 kB / 471.1 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006238/0.5184, allocations: 169 kB / 471.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006431/0.5191, allocations: 219.8 kB / 471.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006317/0.5198, allocations: 178.2 kB / 471.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.5198, allocations: 4 kB / 471.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002125/0.5219, allocations: 0.6581 MB / 472.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.522, allocations: 4 kB / 472.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.522, allocations: 0 / 472.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.5233, allocations: 259.1 kB / 472.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005711/0.5239, allocations: 71.89 kB / 472.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.5341, allocations: 6.83 MB / 479.4 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005651/0.5347, allocations: 20.02 kB / 479.5 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.985e-05/0.5348, allocations: 16 kB / 479.5 MB, free: 6.855 MB / 362.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.0003924/0.5352, allocations: 185.9 kB / 479.7 MB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.5353, allocations: 47.44 kB / 479.7 MB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001651/0.5355, allocations: 64.95 kB / 479.8 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.5355, allocations: 8 kB / 479.8 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.5355, allocations: 0 / 479.8 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.5355, allocations: 4.453 kB / 479.8 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003694/0.5393, allocations: 1.361 MB / 481.1 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/0.5393, allocations: 4 kB / 481.1 MB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005628/0.5399, allocations: 63.89 kB / 481.2 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00123/0.5411, allocations: 251.1 kB / 481.4 MB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.008e-05/0.5412, allocations: 12 kB / 481.5 MB, free: 4.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01104/0.5523, allocations: 6.848 MB / 488.3 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5524, allocations: 4.031 kB / 488.3 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003508/0.5559, allocations: 1.041 MB / 489.4 MB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004467/0.5564, allocations: 160.4 kB / 489.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.5565, allocations: 12 kB / 489.5 MB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004752/0.557, allocations: 23.98 kB / 489.5 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002214/0.5572, allocations: 52.48 kB / 489.6 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.124e-05/0.5573, allocations: 16 kB / 489.6 MB, free: 12.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004644/0.5578, allocations: 251.2 kB / 489.9 MB, free: 11.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5578, allocations: 480 / 489.9 MB, free: 11.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001267/0.5591, allocations: 172 kB / 490 MB, free: 11.62 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.003572/0.5627, allocations: 1.609 MB / 491.6 MB, free: 9.977 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002646/0.5654, allocations: 1.053 MB / 492.7 MB, free: 8.871 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5654, allocations: 0 / 492.7 MB, free: 8.871 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001903/0.5673, allocations: 0.8492 MB / 493.5 MB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006949/0.5681, allocations: 73.52 kB / 493.6 MB, free: 7.898 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009379/0.5775, allocations: 3.616 MB / 497.2 MB, free: 4.215 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006553/0.5782, allocations: 0.8909 MB / 498.1 MB, free: 3.297 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003997/0.5786, allocations: 183.4 kB / 498.3 MB, free: 3.117 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5786, allocations: 0 / 498.3 MB, free: 3.117 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.293/3.872, allocations: 15.81 MB / 0.5021 GB, free: 104.1 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