Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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/Complex 3.2.1+maint.om/package.mo): time 0.002351/0.002351, allocations: 176.9 kB / 7.451 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.308/1.308, allocations: 170.6 MB / 178.4 MB, free: 15.73 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001715/0.001715, allocations: 116.6 kB / 217.7 MB, free: 8.504 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.057e-05/1.062e-05, allocations: 0 / 261.7 MB, free: 26.69 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1073, allocations: 38.77 MB / 300.5 MB, free: 3.934 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3044/0.4117, allocations: 69.73 MB / 370.2 MB, free: 14.84 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000365/0.4122, allocations: 73.12 kB / 370.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.04957/0.4618, allocations: 15.57 MB / 385.9 MB, free: 1.652 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001036/0.462, allocations: 23.98 kB / 385.9 MB, free: 1.629 MB / 266.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.004509/0.4665, allocations: 1.265 MB / 387.2 MB, free: 384 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.4666, allocations: 11.97 kB / 387.2 MB, free: 372 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005876/0.4671, allocations: 102.8 kB / 387.3 MB, free: 268 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001374/0.4685, allocations: 0.5252 MB / 387.8 MB, free: 15.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/0.4686, allocations: 28 kB / 387.8 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003426/0.469, allocations: 54.97 kB / 387.9 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002163/0.4711, allocations: 0.8384 MB / 388.7 MB, free: 15.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002065/0.4732, allocations: 0.8319 MB / 389.6 MB, free: 14.67 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.4733, allocations: 0 / 389.6 MB, free: 14.67 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.4734, allocations: 4 kB / 389.6 MB, free: 14.66 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.856e-05/0.4734, allocations: 20 kB / 389.6 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007522/0.481, allocations: 3.68 MB / 393.3 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.4821, allocations: 0.5245 MB / 393.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006811/0.4829, allocations: 438.5 kB / 394.2 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.275e-05/0.4829, allocations: 12.64 kB / 394.2 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.483, allocations: 41.84 kB / 394.3 MB, free: 11.11 MB / 282.7 MB Notification: Performance of pre-optimization done (n=67): time 3.797e-06/0.483, allocations: 4 kB / 394.3 MB, free: 11.11 MB / 282.7 MB Notification: Performance of matching and sorting (n=71): time 0.004876/0.4879, allocations: 1.976 MB / 396.2 MB, free: 9.645 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.4879, allocations: 60.06 kB / 396.3 MB, free: 9.574 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007352/0.4887, allocations: 415.2 kB / 396.7 MB, free: 9.258 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.536e-05/0.4888, allocations: 25.7 kB / 396.7 MB, free: 9.227 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.4891, allocations: 339.3 kB / 397.1 MB, free: 8.926 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003113/0.4894, allocations: 239.9 kB / 397.3 MB, free: 8.719 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.041e-05/0.4895, allocations: 0 / 397.3 MB, free: 8.719 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002738/0.4898, allocations: 382.7 kB / 397.7 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006825/0.4905, allocations: 351.2 kB / 398 MB, free: 8.184 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007719/0.4913, allocations: 470 kB / 398.5 MB, free: 7.871 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008693/0.4921, allocations: 384.5 kB / 398.9 MB, free: 7.656 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.4922, allocations: 0 / 398.9 MB, free: 7.656 MB / 282.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002654/0.4948, allocations: 1.073 MB / 399.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.4949, allocations: 15.89 kB / 399.9 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.4949, allocations: 256 / 399.9 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006489/0.4955, allocations: 173.3 kB / 400.1 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/0.4971, allocations: 298.3 kB / 400.4 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004444/0.5016, allocations: 2.472 MB / 402.9 MB, free: 4.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.5029, allocations: 119.9 kB / 403 MB, free: 3.984 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.503, allocations: 35.97 kB / 403 MB, free: 3.949 MB / 282.7 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.0002742/0.5033, allocations: 121.5 kB / 403.1 MB, free: 3.824 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003205/0.5036, allocations: 67.25 kB / 403.2 MB, free: 3.758 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003201/0.5039, allocations: 78.08 kB / 403.3 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.504, allocations: 11.91 kB / 403.3 MB, free: 3.668 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-05/0.504, allocations: 0 / 403.3 MB, free: 3.668 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.504, allocations: 3.984 kB / 403.3 MB, free: 3.664 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001718/0.5057, allocations: 0.9043 MB / 404.2 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.5057, allocations: 4 kB / 404.2 MB, free: 2.719 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.5071, allocations: 247.7 kB / 404.5 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005808/0.5077, allocations: 180.9 kB / 404.6 MB, free: 2.297 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.149e-05/0.5078, allocations: 15.92 kB / 404.6 MB, free: 2.281 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004093/0.5119, allocations: 2.479 MB / 407.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.512, allocations: 0 / 407.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003096/0.5151, allocations: 1.54 MB / 408.7 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000517/0.5156, allocations: 236.1 kB / 408.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002054/0.5158, allocations: 8 kB / 408.9 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.5171, allocations: 147.9 kB / 409 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/0.5173, allocations: 36.59 kB / 409.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.5174, allocations: 27.97 kB / 409.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0005472/0.518, allocations: 315 kB / 409.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001269/0.5192, allocations: 204 kB / 409.6 MB, free: 13.16 MB / 298.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.0004199/0.5197, allocations: 119.1 kB / 409.7 MB, free: 13.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002695/0.5224, allocations: 1.036 MB / 410.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.5224, allocations: 0 / 410.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/0.5239, allocations: 0.6175 MB / 411.4 MB, free: 11.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007848/0.5247, allocations: 78.23 kB / 411.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004467/0.5292, allocations: 1.734 MB / 413.2 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/0.5304, allocations: 1.082 MB / 414.3 MB, free: 8.391 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5304, allocations: 0 / 414.3 MB, free: 8.391 MB / 298.7 MB Notification: Performance of Templates: time 0.0275/0.5579, allocations: 12.25 MB / 426.5 MB, free: 12.12 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)