Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",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.0009616/0.0009616, allocations: 185.8 kB / 8.14 MB, free: 2.211 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.108/1.108, allocations: 221.4 MB / 229.9 MB, free: 3.059 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.0009469/0.0009469, allocations: 90.75 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09524/0.09622, allocations: 55.83 MB / 336.6 MB, free: 9.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.2766, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1063/0.3829, allocations: 103.1 MB / 490.1 MB, free: 15.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.3831, allocations: 69.47 kB / 490.2 MB, free: 15.54 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.3021/0.6852, allocations: 97 MB / 0.5734 GB, free: 34.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.6852, allocations: 8 kB / 0.5734 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001545/0.6854, allocations: 193.7 kB / 0.5736 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001342/0.6868, allocations: 1.2 MB / 0.5748 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.6868, allocations: 16 kB / 0.5748 GB, free: 33.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.214e-05/0.6869, allocations: 19.91 kB / 0.5748 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004879/0.6873, allocations: 361.2 kB / 0.5752 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005021/0.6879, allocations: 414.2 kB / 0.5755 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.6879, allocations: 0 / 0.5755 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.103e-05/0.6879, allocations: 3.984 kB / 0.5756 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.6879, allocations: 11.94 kB / 0.5756 GB, free: 32.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002277/0.6902, allocations: 1.609 MB / 0.5771 GB, free: 30.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003143/0.6906, allocations: 255.2 kB / 0.5774 GB, free: 30.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003436/0.6909, allocations: 343.5 kB / 0.5777 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01293/0.7038, allocations: 18.05 MB / 0.5953 GB, free: 9.758 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002514/0.7041, allocations: 183.3 kB / 0.5955 GB, free: 9.566 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 2.094e-06/0.7041, allocations: 0 / 0.5955 GB, free: 9.566 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007991/0.7049, allocations: 484.5 kB / 0.596 GB, free: 9.082 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.705, allocations: 158.2 kB / 0.5961 GB, free: 8.891 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.7062, allocations: 1.106 MB / 0.5972 GB, free: 7.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.7063, allocations: 29.7 kB / 0.5972 GB, free: 7.715 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.7064, allocations: 363.9 kB / 0.5976 GB, free: 7.352 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.179e-05/0.7065, allocations: 86.81 kB / 0.5977 GB, free: 7.266 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.449e-05/0.7065, allocations: 0 / 0.5977 GB, free: 7.266 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.113e-05/0.7066, allocations: 330 kB / 0.598 GB, free: 6.938 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.7068, allocations: 101 kB / 0.5981 GB, free: 6.836 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.707, allocations: 310.2 kB / 0.5984 GB, free: 6.426 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002324/0.7073, allocations: 140.1 kB / 0.5985 GB, free: 6.289 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.7073, allocations: 7.938 kB / 0.5985 GB, free: 6.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007642/0.708, allocations: 0.5945 MB / 0.5991 GB, free: 5.676 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.7081, allocations: 10.75 kB / 0.5991 GB, free: 5.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.313e-05/0.7081, allocations: 51.92 kB / 0.5991 GB, free: 5.617 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002845/0.7084, allocations: 137.5 kB / 0.5993 GB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/0.7089, allocations: 115.8 kB / 0.5994 GB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000504/0.7094, allocations: 0.7007 MB / 0.6001 GB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006385/0.71, allocations: 79.55 kB / 0.6002 GB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.449e-05/0.7101, allocations: 36.06 kB / 0.6002 GB, free: 4.527 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.7102, allocations: 132.7 kB / 0.6003 GB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.7104, allocations: 185.8 kB / 0.6005 GB, free: 4.207 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001874/0.7122, allocations: 0.7738 MB / 0.6012 GB, free: 3.418 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.7122, allocations: 4 kB / 0.6012 GB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.7123, allocations: 0 / 0.6012 GB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.7123, allocations: 0 / 0.6012 GB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/0.7136, allocations: 1.167 MB / 0.6024 GB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.911e-05/0.7137, allocations: 35.94 kB / 0.6024 GB, free: 2.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002698/0.714, allocations: 64 kB / 0.6025 GB, free: 2.094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002049/0.7142, allocations: 116.8 kB / 0.6026 GB, free: 1.977 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.621e-05/0.7142, allocations: 27.92 kB / 0.6026 GB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004503/0.7147, allocations: 0.6967 MB / 0.6033 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.7147, allocations: 0 / 0.6033 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005703/0.7153, allocations: 0.6113 MB / 0.6039 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007516/0.716, allocations: 1.025 MB / 0.6049 GB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003763/0.7164, allocations: 290.7 kB / 0.6052 GB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/0.7166, allocations: 3.906 kB / 0.6052 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004962/0.7171, allocations: 43.97 kB / 0.6052 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.7172, allocations: 43.88 kB / 0.6053 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.555e-05/0.7173, allocations: 20 kB / 0.6053 GB, free: 15.08 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0009919/0.7183, allocations: 0.8324 MB / 0.6061 GB, free: 14.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001424/0.7197, allocations: 351.7 kB / 0.6064 GB, free: 13.88 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009219/0.7207, allocations: 0.7056 MB / 0.6071 GB, free: 13.17 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006778/0.7213, allocations: 399.9 kB / 0.6075 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.7214, allocations: 0 / 0.6075 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003826/0.7218, allocations: 223.2 kB / 0.6077 GB, free: 12.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.7228, allocations: 279.4 kB / 0.608 GB, free: 12.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002756/0.7256, allocations: 1.513 MB / 0.6095 GB, free: 10.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007168/0.7263, allocations: 1.268 MB / 0.6107 GB, free: 9.414 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.7263, allocations: 0 / 0.6107 GB, free: 9.414 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)