Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.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.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",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.0009841/0.0009842, allocations: 177.2 kB / 8.134 MB, free: 2.191 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.084/1.084, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0008849/0.0008849, allocations: 97.84 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09251/0.09343, allocations: 55.82 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.27, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09393/0.364, allocations: 91.73 MB / 478.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.3642, allocations: 72.47 kB / 478.8 MB, free: 10.95 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.2057/0.5699, allocations: 44.99 MB / 0.5115 GB, free: 92.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.57, allocations: 11.58 kB / 0.5115 GB, free: 92.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.5701, allocations: 116.5 kB / 0.5116 GB, free: 92.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008511/0.571, allocations: 0.7139 MB / 0.5123 GB, free: 91.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.571, allocations: 11.5 kB / 0.5123 GB, free: 91.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.642e-05/0.5711, allocations: 19.75 kB / 0.5124 GB, free: 91.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003205/0.5714, allocations: 208.9 kB / 0.5126 GB, free: 91.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003448/0.5718, allocations: 254 kB / 0.5128 GB, free: 91.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.5718, allocations: 0 / 0.5128 GB, free: 91.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.697e-05/0.5718, allocations: 5.375 kB / 0.5128 GB, free: 91.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.5718, allocations: 11.88 kB / 0.5128 GB, free: 91.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.5734, allocations: 1.34 MB / 0.5141 GB, free: 90.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003078/0.5737, allocations: 226 kB / 0.5143 GB, free: 90.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/0.5739, allocations: 204.2 kB / 0.5145 GB, free: 90.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003962/0.5779, allocations: 4.201 MB / 0.5186 GB, free: 86.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.5781, allocations: 155.1 kB / 0.5188 GB, free: 86.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 1.804e-06/0.5781, allocations: 0 / 0.5188 GB, free: 86.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006974/0.5788, allocations: 420.4 kB / 0.5192 GB, free: 86.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.222e-05/0.5788, allocations: 58.81 kB / 0.5192 GB, free: 86.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006264/0.5794, allocations: 0.6476 MB / 0.5199 GB, free: 85.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.5795, allocations: 25.7 kB / 0.5199 GB, free: 85.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.5796, allocations: 250.6 kB / 0.5201 GB, free: 85.74 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.246e-05/0.5796, allocations: 105.9 kB / 0.5202 GB, free: 85.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.63e-05/0.5797, allocations: 0 / 0.5202 GB, free: 85.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.79e-05/0.5797, allocations: 321.5 kB / 0.5205 GB, free: 85.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.5798, allocations: 87.95 kB / 0.5206 GB, free: 85.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.58, allocations: 182 kB / 0.5208 GB, free: 85.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002846/0.5803, allocations: 154.4 kB / 0.521 GB, free: 85.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.5803, allocations: 8 kB / 0.521 GB, free: 85.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006563/0.581, allocations: 492.7 kB / 0.5214 GB, free: 84.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.581, allocations: 7.281 kB / 0.5214 GB, free: 84.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.846e-05/0.581, allocations: 36 kB / 0.5215 GB, free: 84.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001721/0.5812, allocations: 49.17 kB / 0.5215 GB, free: 84.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.5815, allocations: 90.78 kB / 0.5216 GB, free: 84.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.5827, allocations: 2.531 MB / 0.5241 GB, free: 81.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.583, allocations: 46.72 kB / 0.5241 GB, free: 81.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.301e-05/0.5831, allocations: 16 kB / 0.5241 GB, free: 81.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.VIN.counter,VIN.counter,$whenCondition1,$PRE.VIN.T0,VIN.T0,$PRE.VIN.counter2,VIN.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.451e-05/0.5832, allocations: 123.6 kB / 0.5243 GB, free: 81.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.483e-05/0.5832, allocations: 106.7 kB / 0.5244 GB, free: 81.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009903/0.5842, allocations: 0.5046 MB / 0.5249 GB, free: 81.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.5843, allocations: 0 / 0.5249 GB, free: 81.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.5843, allocations: 4 kB / 0.5249 GB, free: 81.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.5843, allocations: 0 / 0.5249 GB, free: 81.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004001/0.5847, allocations: 0.5244 MB / 0.5254 GB, free: 80.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.377e-05/0.5847, allocations: 32.28 kB / 0.5254 GB, free: 80.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002531/0.585, allocations: 51.02 kB / 0.5254 GB, free: 80.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001199/0.5851, allocations: 49.5 kB / 0.5255 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/0.5852, allocations: 4 kB / 0.5255 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.5862, allocations: 2.534 MB / 0.528 GB, free: 77.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.5863, allocations: 11.72 kB / 0.528 GB, free: 77.75 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007269/0.587, allocations: 0.5481 MB / 0.5285 GB, free: 77.21 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008802/0.5879, allocations: 1.07 MB / 0.5296 GB, free: 76.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.5881, allocations: 186.8 kB / 0.5297 GB, free: 75.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.5882, allocations: 7.609 kB / 0.5297 GB, free: 75.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.5884, allocations: 23.67 kB / 0.5298 GB, free: 75.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.601e-05/0.5885, allocations: 19.41 kB / 0.5298 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.5885, allocations: 15.8 kB / 0.5298 GB, free: 75.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004282/0.589, allocations: 499.9 kB / 0.5303 GB, free: 75.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001111/0.5901, allocations: 283 kB / 0.5306 GB, free: 75.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * Number of discrete variables: 4 ($whenCondition1,VIN.T0,VIN.counter,VIN.counter2) * Number of discrete states: 2 (VIN.counter,VIN.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005956/0.5907, allocations: 499.3 kB / 0.531 GB, free: 74.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005305/0.5912, allocations: 0.4961 MB / 0.5315 GB, free: 74.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.5912, allocations: 0.875 kB / 0.5315 GB, free: 74.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003265/0.5916, allocations: 384.3 kB / 0.5319 GB, free: 73.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004016/0.592, allocations: 99.67 kB / 0.532 GB, free: 73.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.5936, allocations: 1.063 MB / 0.533 GB, free: 72.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004008/0.594, allocations: 1.022 MB / 0.534 GB, free: 71.87 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.594, allocations: 4 kB / 0.534 GB, free: 71.87 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)