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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 192.1 kB / 16.13 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.631/1.631, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 51.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2429, allocations: 46.63 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00616/0.2491, allocations: 5.7 MB / 330.4 MB, free: 13.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003272/0.2524, allocations: 1.457 MB / 331.8 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006751/0.2531, allocations: 15.25 kB / 331.8 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003962/0.2536, allocations: 113.9 kB / 332 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007528/0.2544, allocations: 244.9 kB / 332.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007769/0.2552, allocations: 303.7 kB / 332.5 MB, free: 11.59 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001229/0.2564, allocations: 1.163 MB / 333.7 MB, free: 10.91 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005376/0.2569, allocations: 362.4 kB / 334 MB, free: 10.68 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006053/0.2576, allocations: 406.2 kB / 334.4 MB, free: 10.38 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005246/0.2581, allocations: 493.8 kB / 334.9 MB, free: 9.895 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.2582, allocations: 68 kB / 335 MB, free: 9.828 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002364/0.2585, allocations: 107.9 kB / 335.1 MB, free: 9.723 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.2586, allocations: 191.2 kB / 335.2 MB, free: 9.535 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004361/0.2591, allocations: 497.5 kB / 335.7 MB, free: 9.047 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.2602, allocations: 1.337 MB / 337.1 MB, free: 7.707 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2602, allocations: 4 kB / 337.1 MB, free: 7.703 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2602, allocations: 0 / 337.1 MB, free: 7.703 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.2602, allocations: 0 / 337.1 MB, free: 7.703 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002466/0.2627, allocations: 1.286 MB / 338.4 MB, free: 6.367 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.2628, allocations: 15.97 kB / 338.4 MB, free: 6.352 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001882/0.263, allocations: 103.7 kB / 338.5 MB, free: 6.25 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006109/0.2636, allocations: 0.509 MB / 339 MB, free: 5.699 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.391e-05/0.2636, allocations: 58.38 kB / 339 MB, free: 5.641 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.2637, allocations: 80.38 kB / 339.1 MB, free: 5.562 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.2653, allocations: 0.8886 MB / 340 MB, free: 4.66 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.2653, allocations: 0 / 340 MB, free: 4.66 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.68e-05/0.2654, allocations: 36 kB / 340 MB, free: 4.625 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.2654, allocations: 20 kB / 340.1 MB, free: 4.605 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.2669, allocations: 0.7847 MB / 340.9 MB, free: 3.82 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004848/0.2717, allocations: 3.052 MB / 343.9 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.2728, allocations: 0.6461 MB / 344.5 MB, free: 0 / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000629/0.2735, allocations: 410.4 kB / 345 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.75e-05/0.2736, allocations: 16.53 kB / 345 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.2736, allocations: 47.06 kB / 345 MB, free: 15.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 2.154e-06/0.2736, allocations: 0 / 345 MB, free: 15.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.004426/0.2781, allocations: 2.178 MB / 347.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/0.2781, allocations: 64 kB / 347.3 MB, free: 13.21 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005992/0.2787, allocations: 0.5106 MB / 347.8 MB, free: 12.7 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.684e-05/0.2788, allocations: 41.7 kB / 347.8 MB, free: 12.65 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003245/0.2791, allocations: 395.4 kB / 348.2 MB, free: 12.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002678/0.2794, allocations: 252.4 kB / 348.4 MB, free: 12 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/0.2797, allocations: 138.6 kB / 348.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002279/0.2799, allocations: 374.8 kB / 348.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006577/0.2806, allocations: 309.9 kB / 349.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007852/0.2814, allocations: 421.1 kB / 349.7 MB, free: 10.74 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.2827, allocations: 0.7428 MB / 350.4 MB, free: 9.961 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.2828, allocations: 0 / 350.4 MB, free: 9.961 MB / 286.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00236/0.2851, allocations: 1.044 MB / 351.4 MB, free: 8.906 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.2852, allocations: 4 kB / 351.4 MB, free: 8.902 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.2852, allocations: 4 kB / 351.4 MB, free: 8.898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006586/0.2859, allocations: 180.7 kB / 351.6 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008438/0.2867, allocations: 183.8 kB / 351.8 MB, free: 8.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004103/0.2908, allocations: 2.609 MB / 354.4 MB, free: 5.797 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006656/0.2915, allocations: 32.03 kB / 354.4 MB, free: 5.766 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.821e-05/0.2916, allocations: 35.94 kB / 354.5 MB, free: 5.73 MB / 286.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004334/0.292, allocations: 217.7 kB / 354.7 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.2922, allocations: 75.16 kB / 354.8 MB, free: 5.434 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001489/0.2923, allocations: 86.17 kB / 354.8 MB, free: 5.344 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.2923, allocations: 8 kB / 354.9 MB, free: 5.336 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.752e-05/0.2924, allocations: 4.125 kB / 354.9 MB, free: 5.332 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.2924, allocations: 3.984 kB / 354.9 MB, free: 5.328 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.2936, allocations: 0.8416 MB / 355.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.2936, allocations: 0 / 355.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007099/0.2943, allocations: 147.8 kB / 355.8 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005837/0.2949, allocations: 184.7 kB / 356 MB, free: 4.105 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.953e-05/0.295, allocations: 19.98 kB / 356 MB, free: 4.086 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00349/0.2985, allocations: 2.616 MB / 358.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2985, allocations: 0 / 358.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002453/0.3009, allocations: 1.377 MB / 360 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.3011, allocations: 140.3 kB / 360.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.833e-05/0.3012, allocations: 20 kB / 360.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005328/0.3018, allocations: 47.95 kB / 360.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.3019, allocations: 48.58 kB / 360.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.324e-05/0.302, allocations: 23.98 kB / 360.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004692/0.3024, allocations: 362.9 kB / 360.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3025, allocations: 0 / 360.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007956/0.3033, allocations: 220 kB / 360.9 MB, free: 15.08 MB / 302.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002387/0.3035, allocations: 139.4 kB / 361 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002152/0.3057, allocations: 1.006 MB / 362 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3057, allocations: 3.938 kB / 362 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001404/0.3071, allocations: 0.6315 MB / 362.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007071/0.3078, allocations: 130.2 kB / 362.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003171/0.311, allocations: 2.251 MB / 365 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006116/0.3116, allocations: 0.9539 MB / 366 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003596/0.312, allocations: 81.06 kB / 366.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.3121, allocations: 55.36 kB / 366.1 MB, free: 9.742 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3122, allocations: 0 / 366.1 MB, free: 9.742 MB / 302.1 MB Notification: Performance of Templates: time 0.01604/0.3282, allocations: 9.883 MB / 376 MB, free: 15.84 MB / 318.1 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)