Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [: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.6748/0.6748, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001733/0.001733, allocations: 152 kB / 143.7 MB, free: 4.891 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.038e-05/1.046e-05, allocations: 4 kB / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06778/0.06781, allocations: 25.17 MB / 198.6 MB, free: 13.96 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1603/0.2282, allocations: 36.74 MB / 235.4 MB, free: 4.391 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.2285, allocations: 62.61 kB / 235.4 MB, free: 4.391 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.05001/0.2785, allocations: 15.16 MB / 250.6 MB, free: 380 kB / 170.7 MB Notification: Performance of Transformations before backend: time 0.0001303/0.2787, allocations: 20.81 kB / 250.6 MB, free: 380 kB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.00658/0.2853, allocations: 1.259 MB / 251.9 MB, free: 15.59 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.2853, allocations: 8.25 kB / 251.9 MB, free: 15.59 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006854/0.286, allocations: 107.8 kB / 252 MB, free: 15.54 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.2878, allocations: 0.506 MB / 252.5 MB, free: 15.2 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.593e-05/0.2879, allocations: 26.88 kB / 252.5 MB, free: 15.2 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004/0.2883, allocations: 50.91 kB / 252.6 MB, free: 15.19 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003479/0.2918, allocations: 0.8398 MB / 253.4 MB, free: 15.15 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002578/0.2944, allocations: 0.837 MB / 254.2 MB, free: 14.93 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.251e-05/0.2945, allocations: 7.609 kB / 254.2 MB, free: 14.93 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001754/0.2947, allocations: 1.469 kB / 254.2 MB, free: 14.93 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.523e-05/0.2947, allocations: 19.97 kB / 254.3 MB, free: 14.93 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01084/0.3056, allocations: 3.666 MB / 257.9 MB, free: 12.98 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/0.3075, allocations: 0.5194 MB / 258.4 MB, free: 12.95 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.3087, allocations: 439.5 kB / 258.9 MB, free: 12.92 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.822e-05/0.3088, allocations: 17.7 kB / 258.9 MB, free: 12.91 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/0.3088, allocations: 43.78 kB / 258.9 MB, free: 12.87 MB / 186.7 MB Notification: Performance of pre-optimization done (n=67): time 4.047e-06/0.3088, allocations: 0 / 258.9 MB, free: 12.87 MB / 186.7 MB Notification: Performance of matching and sorting (n=71): time 0.007105/0.3159, allocations: 1.982 MB / 260.9 MB, free: 12 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.316, allocations: 60.06 kB / 261 MB, free: 11.93 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008966/0.3169, allocations: 401 kB / 261.4 MB, free: 11.63 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.3171, allocations: 29.7 kB / 261.4 MB, free: 11.59 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002962/0.3174, allocations: 339.3 kB / 261.7 MB, free: 11.25 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003106/0.3177, allocations: 240.4 kB / 262 MB, free: 11.01 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.989e-05/0.3178, allocations: 3.938 kB / 262 MB, free: 11.01 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.318, allocations: 370.8 kB / 262.3 MB, free: 10.64 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.3191, allocations: 349.7 kB / 262.7 MB, free: 10.3 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.3202, allocations: 446.6 kB / 263.1 MB, free: 9.82 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.3214, allocations: 387.5 kB / 263.5 MB, free: 9.445 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.3214, allocations: 4 kB / 263.5 MB, free: 9.441 MB / 186.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.003535/0.3249, allocations: 1.08 MB / 264.6 MB, free: 8.348 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.325, allocations: 4 kB / 264.6 MB, free: 8.344 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.517e-05/0.325, allocations: 4 kB / 264.6 MB, free: 8.34 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009578/0.326, allocations: 185.5 kB / 264.8 MB, free: 8.156 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002301/0.3283, allocations: 291.7 kB / 265 MB, free: 7.871 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005886/0.3342, allocations: 2.48 MB / 267.5 MB, free: 5.277 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/0.3361, allocations: 115.9 kB / 267.6 MB, free: 5.164 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002395/0.3364, allocations: 35.98 kB / 267.7 MB, free: 5.129 MB / 186.7 MB Warning: Assuming fixed start value for the following 9 variables: Transistor2.Tr.C.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Transistor2.ct.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Transistor1.Tr.C.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Transistor1.ct.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C3.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C5.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C4.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.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: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * 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: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004616/0.3368, allocations: 133.2 kB / 267.8 MB, free: 4.996 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003304/0.3372, allocations: 71.14 kB / 267.9 MB, free: 4.926 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004383/0.3376, allocations: 77.97 kB / 267.9 MB, free: 4.848 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.3377, allocations: 11.98 kB / 268 MB, free: 4.836 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.96e-05/0.3377, allocations: 0 / 268 MB, free: 4.836 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.3377, allocations: 7.984 kB / 268 MB, free: 4.828 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001968/0.3397, allocations: 0.8864 MB / 268.9 MB, free: 3.922 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.3397, allocations: 4 kB / 268.9 MB, free: 3.918 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002221/0.3419, allocations: 251.7 kB / 269.1 MB, free: 3.672 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008639/0.3428, allocations: 172.7 kB / 269.3 MB, free: 3.5 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001454/0.343, allocations: 11.98 kB / 269.3 MB, free: 3.488 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006288/0.3493, allocations: 2.474 MB / 271.8 MB, free: 0.8984 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.3493, allocations: 4 kB / 271.8 MB, free: 0.8945 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005652/0.355, allocations: 1.54 MB / 273.3 MB, free: 15.34 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007881/0.3558, allocations: 240.1 kB / 273.5 MB, free: 15.09 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003562/0.3562, allocations: 4 kB / 273.5 MB, free: 15.08 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002191/0.3584, allocations: 151.9 kB / 273.7 MB, free: 14.93 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.3586, allocations: 36.59 kB / 273.7 MB, free: 14.9 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.3587, allocations: 23.97 kB / 273.7 MB, free: 14.88 MB / 202.7 MB Notification: Performance of sort global known variables: time 0.0005956/0.3593, allocations: 307 kB / 274 MB, free: 14.58 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001464/0.3608, allocations: 212 kB / 274.3 MB, free: 14.37 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003565/0.3612, allocations: 123.3 kB / 274.4 MB, free: 14.24 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003807/0.365, allocations: 1.032 MB / 275.4 MB, free: 13.2 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.365, allocations: 0 / 275.4 MB, free: 13.2 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002507/0.3675, allocations: 0.6254 MB / 276 MB, free: 12.56 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001578/0.3691, allocations: 114.5 kB / 276.1 MB, free: 12.45 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006083/0.3752, allocations: 1.665 MB / 277.8 MB, free: 10.77 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001757/0.377, allocations: 1.07 MB / 278.9 MB, free: 9.676 MB / 202.7 MB Notification: Performance of SimCode: time 1.032e-06/0.3771, allocations: 0 / 278.9 MB, free: 9.676 MB / 202.7 MB Notification: Performance of Templates: time 0.03846/0.4155, allocations: 12.48 MB / 291.4 MB, free: 13.21 MB / 218.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)