Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") translateModel(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.7039/0.7039, allocations: 110.7 MB / 118 MB, free: 14.58 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001654/0.001654, allocations: 156 kB / 143.7 MB, free: 4.906 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.554e-06, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05515/0.05518, allocations: 25.17 MB / 198.6 MB, free: 13.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.127/0.1822, allocations: 35.65 MB / 234.3 MB, free: 4.387 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001787/0.1824, allocations: 63.78 kB / 234.3 MB, free: 4.387 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.02178/0.2042, allocations: 7.996 MB / 242.3 MB, free: 3.309 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.2043, allocations: 7.75 kB / 242.3 MB, free: 3.309 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001034/0.2053, allocations: 0.631 MB / 243 MB, free: 2.801 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.2054, allocations: 11.59 kB / 243 MB, free: 2.801 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.2055, allocations: 46.31 kB / 243 MB, free: 2.777 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000429/0.2059, allocations: 295.2 kB / 243.3 MB, free: 2.52 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.206, allocations: 11.69 kB / 243.3 MB, free: 2.516 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.72e-05/0.206, allocations: 19.09 kB / 243.4 MB, free: 2.516 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003844/0.2064, allocations: 196.1 kB / 243.5 MB, free: 2.504 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004284/0.2069, allocations: 275.7 kB / 243.8 MB, free: 2.41 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.2069, allocations: 0 / 243.8 MB, free: 2.41 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.169e-05/0.2069, allocations: 3.906 kB / 243.8 MB, free: 2.41 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.2069, allocations: 11.8 kB / 243.8 MB, free: 2.406 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.2087, allocations: 1.102 MB / 244.9 MB, free: 1.766 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003822/0.2091, allocations: 218.6 kB / 245.1 MB, free: 1.723 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003461/0.2095, allocations: 192.1 kB / 245.3 MB, free: 1.691 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005298/0.21, allocations: 1.126 MB / 246.5 MB, free: 364 kB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.21, allocations: 42.66 kB / 246.5 MB, free: 316 kB / 170.7 MB Notification: Performance of pre-optimization done (n=27): time 1.703e-06/0.2101, allocations: 0 / 246.5 MB, free: 316 kB / 170.7 MB Notification: Performance of matching and sorting (n=27): time 0.0006327/0.2107, allocations: 267 kB / 246.8 MB, free: 232 kB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.2107, allocations: 77.11 kB / 246.8 MB, free: 136 kB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.211, allocations: 253.2 kB / 247.1 MB, free: 16 kB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.073e-05/0.2111, allocations: 26.64 kB / 247.1 MB, free: 15.98 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.2112, allocations: 186.3 kB / 247.3 MB, free: 15.83 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.916e-05/0.2113, allocations: 101.5 kB / 247.4 MB, free: 15.75 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.2113, allocations: 0 / 247.4 MB, free: 15.75 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.2115, allocations: 349.8 kB / 247.7 MB, free: 15.42 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.2116, allocations: 74.08 kB / 247.8 MB, free: 15.41 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.2118, allocations: 162 kB / 248 MB, free: 15.32 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.212, allocations: 104 kB / 248.1 MB, free: 15.3 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.212, allocations: 0 / 248.1 MB, free: 15.3 MB / 186.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005748/0.2126, allocations: 349.7 kB / 248.4 MB, free: 15.2 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2126, allocations: 7.812 kB / 248.4 MB, free: 15.2 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.2126, allocations: 3.875 kB / 248.4 MB, free: 15.2 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002396/0.2129, allocations: 60.14 kB / 248.5 MB, free: 15.18 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/0.2132, allocations: 81.92 kB / 248.6 MB, free: 15.16 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004881/0.2137, allocations: 0.6265 MB / 249.2 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.214, allocations: 27.41 kB / 249.2 MB, free: 14.6 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.2141, allocations: 19.25 kB / 249.2 MB, free: 14.6 MB / 186.7 MB Warning: Assuming fixed start value for the following 5 variables: opAmp.v_source:VARIABLE(unit = "V" ) type: Real opAmp.q_fr3:VARIABLE() type: Real opAmp.q_fr2:VARIABLE() type: Real opAmp.q_fr1:VARIABLE() type: Real opAmp.v_in:VARIABLE(unit = "V" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistor2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002106/0.2143, allocations: 120.8 kB / 249.3 MB, free: 14.48 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.706e-05/0.2144, allocations: 31.19 kB / 249.4 MB, free: 14.46 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000533/0.2149, allocations: 296.2 kB / 249.7 MB, free: 14.36 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2149, allocations: 7.812 kB / 249.7 MB, free: 14.36 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.215, allocations: 0 / 249.7 MB, free: 14.36 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.215, allocations: 0 / 249.7 MB, free: 14.36 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004112/0.2154, allocations: 335.3 kB / 250 MB, free: 14.14 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.2154, allocations: 4 kB / 250 MB, free: 14.13 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003585/0.2158, allocations: 58.55 kB / 250.1 MB, free: 14.12 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001598/0.2159, allocations: 55.48 kB / 250.1 MB, free: 14.11 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.806e-05/0.216, allocations: 7.984 kB / 250.1 MB, free: 14.1 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004313/0.2164, allocations: 0.6142 MB / 250.7 MB, free: 13.56 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.2164, allocations: 3.875 kB / 250.7 MB, free: 13.56 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000641/0.2171, allocations: 463.9 kB / 251.2 MB, free: 13.38 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.2172, allocations: 133.7 kB / 251.3 MB, free: 13.25 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.799e-05/0.2173, allocations: 7.031 kB / 251.3 MB, free: 13.25 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/0.2176, allocations: 24.86 kB / 251.4 MB, free: 13.24 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.549e-05/0.2177, allocations: 15.59 kB / 251.4 MB, free: 13.23 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.2177, allocations: 7 kB / 251.4 MB, free: 13.23 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0001611/0.2179, allocations: 194.1 kB / 251.6 MB, free: 13.14 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005754/0.2184, allocations: 102.6 kB / 251.7 MB, free: 13.12 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002529/0.2187, allocations: 129.1 kB / 251.8 MB, free: 13.02 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004856/0.2192, allocations: 241.7 kB / 252 MB, free: 12.99 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2192, allocations: 3.125 kB / 252 MB, free: 12.99 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002239/0.2194, allocations: 119.1 kB / 252.1 MB, free: 12.98 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.2198, allocations: 38.25 kB / 252.2 MB, free: 12.96 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.221, allocations: 0.6395 MB / 252.8 MB, free: 12.55 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005654/0.2216, allocations: 0.8291 MB / 253.7 MB, free: 11.79 MB / 186.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2216, allocations: 0 / 253.7 MB, free: 11.79 MB / 186.7 MB Notification: Performance of Templates: time 0.008899/0.2305, allocations: 3.505 MB / 257.2 MB, free: 10.05 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1)