Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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/Complex 3.2.2+maint.om/package.mo): time 0.001115/0.001115, allocations: 181.9 kB / 8.135 MB, free: 0.875 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.096/1.096, allocations: 194.2 MB / 202.8 MB, free: 2.02 MB / 162.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001784/0.001784, allocations: 128.4 kB / 247.8 MB, free: 5.02 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 8.366e-06/8.386e-06, allocations: 0 / 297.6 MB, free: 8.188 MB / 210.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08143/0.08146, allocations: 44.49 MB / 342.1 MB, free: 11.61 MB / 258.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.194/0.2756, allocations: 74.96 MB / 417 MB, free: 8.875 MB / 306.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001908/0.2758, allocations: 71.97 kB / 417.1 MB, free: 8.805 MB / 306.8 MB Notification: Performance of FrontEnd: time 0.04685/0.3227, allocations: 15.33 MB / 432.4 MB, free: 9.441 MB / 322.8 MB Notification: Performance of Transformations before backend: time 5.432e-05/0.3228, allocations: 20 kB / 432.4 MB, free: 9.422 MB / 322.8 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.003526/0.3263, allocations: 1.263 MB / 433.7 MB, free: 8.113 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.3263, allocations: 8.031 kB / 433.7 MB, free: 8.105 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003572/0.3267, allocations: 102.8 kB / 433.8 MB, free: 8.004 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009402/0.3277, allocations: 0.5197 MB / 434.3 MB, free: 7.441 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.3277, allocations: 28.75 kB / 434.3 MB, free: 7.414 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/0.3279, allocations: 47.98 kB / 434.4 MB, free: 7.367 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001757/0.3296, allocations: 0.8468 MB / 435.2 MB, free: 6.523 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.3313, allocations: 0.8376 MB / 436.1 MB, free: 5.668 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.3313, allocations: 3.906 kB / 436.1 MB, free: 5.664 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.597e-05/0.3314, allocations: 3.984 kB / 436.1 MB, free: 5.66 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.3315, allocations: 20 kB / 436.1 MB, free: 5.641 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006398/0.3379, allocations: 3.679 MB / 439.8 MB, free: 1.777 MB / 322.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.339, allocations: 0.5262 MB / 440.3 MB, free: 1.246 MB / 322.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006715/0.3397, allocations: 443.6 kB / 440.7 MB, free: 0.8086 MB / 322.8 MB Notification: Performance of preOpt evalFunc (simulation): time 5.427e-05/0.3398, allocations: 16.62 kB / 440.8 MB, free: 0.793 MB / 322.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.3398, allocations: 39.22 kB / 440.8 MB, free: 0.7461 MB / 322.8 MB Notification: Performance of pre-optimization done (n=67): time 2.284e-06/0.3398, allocations: 0 / 440.8 MB, free: 0.7461 MB / 322.8 MB Notification: Performance of matching and sorting (n=71): time 0.004366/0.3442, allocations: 1.98 MB / 442.8 MB, free: 14.71 MB / 338.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.3442, allocations: 60.06 kB / 442.8 MB, free: 14.64 MB / 338.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.3447, allocations: 406 kB / 443.2 MB, free: 14.24 MB / 338.8 MB Notification: Performance of collectPreVariables (initialization): time 7.136e-05/0.3448, allocations: 25.7 kB / 443.3 MB, free: 14.21 MB / 338.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/0.345, allocations: 339.3 kB / 443.6 MB, free: 13.87 MB / 338.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.3452, allocations: 248.3 kB / 443.8 MB, free: 13.62 MB / 338.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.836e-05/0.3453, allocations: 4 kB / 443.8 MB, free: 13.62 MB / 338.8 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3454, allocations: 370.8 kB / 444.2 MB, free: 13.25 MB / 338.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006172/0.346, allocations: 357.9 kB / 444.6 MB, free: 12.9 MB / 338.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007076/0.3468, allocations: 463 kB / 445 MB, free: 12.41 MB / 338.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008047/0.3476, allocations: 392.3 kB / 445.4 MB, free: 12.02 MB / 338.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3476, allocations: 0 / 445.4 MB, free: 12.02 MB / 338.8 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002223/0.3498, allocations: 1.081 MB / 446.5 MB, free: 10.93 MB / 338.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.3499, allocations: 4 kB / 446.5 MB, free: 10.93 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.3499, allocations: 4 kB / 446.5 MB, free: 10.93 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005826/0.3505, allocations: 173.4 kB / 446.6 MB, free: 10.75 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001892/0.3524, allocations: 295.7 kB / 446.9 MB, free: 10.46 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004409/0.3568, allocations: 2.481 MB / 449.4 MB, free: 7.863 MB / 338.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.3581, allocations: 119.9 kB / 449.5 MB, free: 7.746 MB / 338.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/0.3583, allocations: 31.98 kB / 449.6 MB, free: 7.715 MB / 338.8 MB 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.000274/0.3586, allocations: 124.5 kB / 449.7 MB, free: 7.586 MB / 338.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.3588, allocations: 67.25 kB / 449.7 MB, free: 7.52 MB / 338.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000289/0.3591, allocations: 81.91 kB / 449.8 MB, free: 7.434 MB / 338.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.3591, allocations: 8 kB / 449.8 MB, free: 7.426 MB / 338.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.3591, allocations: 0 / 449.8 MB, free: 7.426 MB / 338.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.3592, allocations: 7.984 kB / 449.8 MB, free: 7.418 MB / 338.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.3609, allocations: 0.8965 MB / 450.7 MB, free: 6.484 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.361, allocations: 3.938 kB / 450.7 MB, free: 6.48 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/0.3627, allocations: 251.7 kB / 451 MB, free: 6.234 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005861/0.3633, allocations: 184.8 kB / 451.2 MB, free: 6.051 MB / 338.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.703e-05/0.3634, allocations: 15.97 kB / 451.2 MB, free: 6.035 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003659/0.3671, allocations: 2.464 MB / 453.7 MB, free: 3.453 MB / 338.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.3671, allocations: 4 kB / 453.7 MB, free: 3.449 MB / 338.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002956/0.3701, allocations: 1.536 MB / 455.2 MB, free: 1.895 MB / 338.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.3703, allocations: 140.2 kB / 455.3 MB, free: 1.738 MB / 338.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/0.3705, allocations: 4 kB / 455.3 MB, free: 1.734 MB / 338.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/0.3717, allocations: 151.9 kB / 455.5 MB, free: 1.586 MB / 338.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.867e-05/0.3718, allocations: 40.59 kB / 455.5 MB, free: 1.547 MB / 338.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.721e-05/0.3719, allocations: 23.97 kB / 455.5 MB, free: 1.523 MB / 338.8 MB Notification: Performance of sort global known variables: time 0.0003986/0.3723, allocations: 307 kB / 455.8 MB, free: 1.227 MB / 338.8 MB Notification: Performance of remove unused functions: time 0.0009199/0.3733, allocations: 216.2 kB / 456.1 MB, free: 1.016 MB / 338.8 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.000244/0.3735, allocations: 119.4 kB / 456.2 MB, free: 0.8867 MB / 338.8 MB Notification: Performance of simCode: created initialization part: time 0.002195/0.3757, allocations: 1.028 MB / 457.2 MB, free: 15.85 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3757, allocations: 0.6875 kB / 457.2 MB, free: 15.85 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.3771, allocations: 0.6248 MB / 457.8 MB, free: 15.21 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005062/0.3777, allocations: 74.23 kB / 457.9 MB, free: 15.14 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.3813, allocations: 1.741 MB / 459.6 MB, free: 13.37 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009868/0.3823, allocations: 1.078 MB / 460.7 MB, free: 12.27 MB / 354.8 MB Notification: Performance of SimCode: time 7.92e-07/0.3823, allocations: 4 kB / 460.7 MB, free: 12.26 MB / 354.8 MB Notification: Performance of Templates: time 0.02132/0.4037, allocations: 12.24 MB / 473 MB, free: 12 kB / 354.8 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)