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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 179.8 kB / 8.476 MB, free: 0.5117 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.07/1.07, allocations: 205.2 MB / 214.1 MB, free: 8.535 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008221/0.0008221, allocations: 85.3 kB / 262.1 MB, free: 5.184 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0843/0.08516, allocations: 53 MB / 315.1 MB, free: 1.98 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07547/0.1606, allocations: 47.56 MB / 362.6 MB, free: 2.301 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2021/0.3628, allocations: 78.15 MB / 440.8 MB, free: 9.668 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001632/0.363, allocations: 70.78 kB / 440.8 MB, free: 9.633 MB / 322.8 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.02071/0.3837, allocations: 9.315 MB / 450.2 MB, free: 1.863 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.3838, allocations: 8.75 kB / 450.2 MB, free: 1.855 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.3839, allocations: 63.25 kB / 450.2 MB, free: 1.793 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.3843, allocations: 366.6 kB / 450.6 MB, free: 1.438 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.3844, allocations: 16 kB / 450.6 MB, free: 1.422 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.284e-05/0.3844, allocations: 33.33 kB / 450.6 MB, free: 1.391 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006088/0.385, allocations: 372.8 kB / 451 MB, free: 1.168 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006137/0.3857, allocations: 446.6 kB / 451.4 MB, free: 0.8164 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.3857, allocations: 3.984 kB / 451.4 MB, free: 0.8125 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/0.3857, allocations: 7.469 kB / 451.4 MB, free: 0.8086 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.3857, allocations: 12 kB / 451.5 MB, free: 0.7969 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002391/0.3881, allocations: 1.981 MB / 453.4 MB, free: 15.11 MB / 338.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.3885, allocations: 232.4 kB / 453.7 MB, free: 14.96 MB / 338.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004986/0.389, allocations: 355.5 kB / 454 MB, free: 14.73 MB / 338.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.26e-05/0.3891, allocations: 5.062 kB / 454 MB, free: 14.72 MB / 338.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.3891, allocations: 43 kB / 454.1 MB, free: 14.68 MB / 338.8 MB Notification: Performance of pre-optimization done (n=60): time 2.335e-06/0.3891, allocations: 3.281 kB / 454.1 MB, free: 14.68 MB / 338.8 MB Notification: Performance of matching and sorting (n=61): time 0.001946/0.3911, allocations: 1.141 MB / 455.2 MB, free: 13.72 MB / 338.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.3911, allocations: 59.81 kB / 455.3 MB, free: 13.65 MB / 338.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000277/0.3914, allocations: 269 kB / 455.5 MB, free: 13.43 MB / 338.8 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.3915, allocations: 25.7 kB / 455.6 MB, free: 13.4 MB / 338.8 MB Notification: Performance of collectInitialEqns (initialization): time 9.493e-05/0.3916, allocations: 195.5 kB / 455.7 MB, free: 13.22 MB / 338.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.3917, allocations: 194.5 kB / 455.9 MB, free: 13.05 MB / 338.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.004e-05/0.3917, allocations: 0 / 455.9 MB, free: 13.05 MB / 338.8 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.3919, allocations: 350.5 kB / 456.3 MB, free: 12.71 MB / 338.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.3921, allocations: 142.6 kB / 456.4 MB, free: 12.64 MB / 338.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002597/0.3924, allocations: 183.4 kB / 456.6 MB, free: 12.52 MB / 338.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/0.3926, allocations: 151.4 kB / 456.7 MB, free: 12.42 MB / 338.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3927, allocations: 4 kB / 456.7 MB, free: 12.42 MB / 338.8 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001038/0.3937, allocations: 0.568 MB / 457.3 MB, free: 11.98 MB / 338.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3937, allocations: 8.625 kB / 457.3 MB, free: 11.97 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3937, allocations: 0 / 457.3 MB, free: 11.97 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007157/0.3945, allocations: 247.2 kB / 457.6 MB, free: 11.78 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003373/0.3948, allocations: 65.95 kB / 457.6 MB, free: 11.71 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005747/0.4006, allocations: 6.393 MB / 464 MB, free: 4.926 MB / 338.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.4009, allocations: 16.05 kB / 464 MB, free: 4.91 MB / 338.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-05/0.4009, allocations: 12 kB / 464 MB, free: 4.898 MB / 338.8 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.0001305/0.4011, allocations: 116.9 kB / 464.2 MB, free: 4.777 MB / 338.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.4012, allocations: 51.38 kB / 464.2 MB, free: 4.727 MB / 338.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.4013, allocations: 57.77 kB / 464.3 MB, free: 4.668 MB / 338.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.4013, allocations: 8 kB / 464.3 MB, free: 4.66 MB / 338.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4013, allocations: 0 / 464.3 MB, free: 4.66 MB / 338.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.4013, allocations: 4 kB / 464.3 MB, free: 4.656 MB / 338.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/0.4031, allocations: 1.157 MB / 465.4 MB, free: 3.445 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.4031, allocations: 8 kB / 465.4 MB, free: 3.438 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002999/0.4034, allocations: 63.89 kB / 465.5 MB, free: 3.375 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006452/0.4041, allocations: 249.4 kB / 465.8 MB, free: 3.121 MB / 338.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.171e-05/0.4041, allocations: 4 kB / 465.8 MB, free: 3.117 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005573/0.4097, allocations: 6.397 MB / 472.2 MB, free: 12.27 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/0.4097, allocations: 5.625 kB / 472.2 MB, free: 12.26 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001363/0.4111, allocations: 0.906 MB / 473.1 MB, free: 11.33 MB / 354.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002551/0.4136, allocations: 1.987 MB / 475.1 MB, free: 9.309 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002109/0.4139, allocations: 156.5 kB / 475.2 MB, free: 9.137 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.284e-05/0.414, allocations: 0 / 475.2 MB, free: 9.137 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002725/0.4142, allocations: 15.98 kB / 475.2 MB, free: 9.121 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.723e-05/0.4143, allocations: 36.44 kB / 475.3 MB, free: 9.086 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/0.4144, allocations: 12 kB / 475.3 MB, free: 9.074 MB / 354.8 MB Notification: Performance of sort global known variables: time 0.0002177/0.4146, allocations: 216.6 kB / 475.5 MB, free: 8.867 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.001382/0.416, allocations: 147.9 kB / 475.6 MB, free: 8.723 MB / 354.8 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.0001701/0.4162, allocations: 111.2 kB / 475.7 MB, free: 8.602 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.4173, allocations: 0.8658 MB / 476.6 MB, free: 7.711 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4174, allocations: 0 / 476.6 MB, free: 7.711 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000907/0.4183, allocations: 0.7047 MB / 477.3 MB, free: 6.965 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.4186, allocations: 53.59 kB / 477.4 MB, free: 6.918 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.4206, allocations: 0.9982 MB / 478.4 MB, free: 5.91 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005719/0.4212, allocations: 0.9213 MB / 479.3 MB, free: 4.957 MB / 354.8 MB Notification: Performance of SimCode: time 3.2e-07/0.4212, allocations: 0 / 479.3 MB, free: 4.957 MB / 354.8 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