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"}) [: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 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 183.2 kB / 8.135 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.109/1.109, allocations: 221.4 MB / 229.9 MB, free: 3.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000876/0.000876, allocations: 101.9 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09603/0.09694, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.2851, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08252/0.3676, allocations: 79.73 MB / 466.7 MB, free: 7.051 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001906/0.3679, allocations: 73 kB / 466.8 MB, free: 6.98 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.02485/0.3927, allocations: 9.611 MB / 476.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.3928, allocations: 8 kB / 476.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.3929, allocations: 63.25 kB / 476.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004623/0.3934, allocations: 363.4 kB / 476.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.3934, allocations: 20 kB / 476.9 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.566e-05/0.3935, allocations: 31.91 kB / 476.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006646/0.3941, allocations: 374.6 kB / 477.3 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006965/0.3948, allocations: 443.9 kB / 477.7 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.3949, allocations: 4 kB / 477.7 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.539e-05/0.3949, allocations: 4 kB / 477.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.3949, allocations: 12 kB / 477.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002707/0.3976, allocations: 1.974 MB / 479.7 MB, free: 9.902 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.398, allocations: 239.1 kB / 479.9 MB, free: 9.664 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004663/0.3985, allocations: 353.8 kB / 480.3 MB, free: 9.312 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.3986, allocations: 4.5 kB / 480.3 MB, free: 9.309 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.3986, allocations: 47.06 kB / 480.3 MB, free: 9.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=60): time 3.266e-06/0.3986, allocations: 1.969 kB / 480.3 MB, free: 9.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.002089/0.4007, allocations: 1.134 MB / 481.4 MB, free: 8.055 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.4008, allocations: 55.91 kB / 481.5 MB, free: 7.988 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002705/0.401, allocations: 281.9 kB / 481.8 MB, free: 7.711 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.4011, allocations: 25.7 kB / 481.8 MB, free: 7.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.262e-05/0.4012, allocations: 193 kB / 482 MB, free: 7.484 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.4013, allocations: 197 kB / 482.2 MB, free: 7.289 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-05/0.4013, allocations: 0 / 482.2 MB, free: 7.289 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.4015, allocations: 354.8 kB / 482.5 MB, free: 6.934 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.4017, allocations: 137.3 kB / 482.7 MB, free: 6.797 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.402, allocations: 187.6 kB / 482.8 MB, free: 6.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.4023, allocations: 151.2 kB / 483 MB, free: 6.461 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4023, allocations: 0 / 483 MB, free: 6.461 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001038/0.4033, allocations: 0.573 MB / 483.6 MB, free: 5.867 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.4033, allocations: 8 kB / 483.6 MB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.4034, allocations: 0 / 483.6 MB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006855/0.4041, allocations: 235.5 kB / 483.8 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003209/0.4044, allocations: 71.92 kB / 483.9 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005639/0.41, allocations: 6.411 MB / 490.3 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.4103, allocations: 12.06 kB / 490.3 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.4104, allocations: 15.98 kB / 490.3 MB, free: 14.65 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 () * 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.0001158/0.4105, allocations: 111.7 kB / 490.4 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.835e-05/0.4106, allocations: 51.34 kB / 490.5 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.4107, allocations: 56.75 kB / 490.5 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.4107, allocations: 8.094 kB / 490.5 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.4107, allocations: 4.688 kB / 490.5 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.4107, allocations: 3.984 kB / 490.5 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.4125, allocations: 1.159 MB / 491.7 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4125, allocations: 0 / 491.7 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000297/0.4128, allocations: 55.95 kB / 491.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006299/0.4135, allocations: 255 kB / 492 MB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.602e-05/0.4135, allocations: 8 kB / 492 MB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005516/0.419, allocations: 6.382 MB / 498.4 MB, free: 6.031 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.4191, allocations: 7.891 kB / 498.4 MB, free: 6.023 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00132/0.4204, allocations: 0.9022 MB / 499.3 MB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002371/0.4228, allocations: 1.995 MB / 0.4896 GB, free: 3.066 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/0.423, allocations: 152.5 kB / 0.4897 GB, free: 2.898 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.347e-05/0.4231, allocations: 4 kB / 0.4897 GB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002773/0.4234, allocations: 15.92 kB / 0.4897 GB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.993e-05/0.4235, allocations: 40.44 kB / 0.4898 GB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.4235, allocations: 12 kB / 0.4898 GB, free: 2.828 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002016/0.4237, allocations: 216.6 kB / 0.49 GB, free: 2.621 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00137/0.4251, allocations: 151.9 kB / 0.4901 GB, free: 2.473 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 () * 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.0001653/0.4253, allocations: 107.5 kB / 0.4902 GB, free: 2.359 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.4265, allocations: 0.8632 MB / 0.4911 GB, free: 1.457 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4265, allocations: 0 / 0.4911 GB, free: 1.457 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009042/0.4274, allocations: 0.6998 MB / 0.4917 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.4278, allocations: 52.78 kB / 0.4918 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1144/0.5422, allocations: 0.9858 MB / 0.4928 GB, free: 135.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004182/0.5426, allocations: 0.9247 MB / 0.4937 GB, free: 135.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5427, allocations: 0 / 0.4937 GB, free: 135.2 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