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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001475/0.001476, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.427/1.427, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.002197/0.002197, allocations: 47.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.269, allocations: 46.64 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007882/0.2769, allocations: 5.71 MB / 331 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00324/0.2802, allocations: 1.453 MB / 332.5 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.2813, allocations: 18.47 kB / 332.5 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004514/0.2818, allocations: 152.8 kB / 332.6 MB, free: 11.93 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007335/0.2825, allocations: 280.3 kB / 332.9 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008616/0.2834, allocations: 344.9 kB / 333.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001351/0.2848, allocations: 1.239 MB / 334.5 MB, free: 10.63 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005879/0.2854, allocations: 417.6 kB / 334.9 MB, free: 10.29 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005688/0.2859, allocations: 462.5 kB / 335.3 MB, free: 9.832 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005164/0.2865, allocations: 0.5214 MB / 335.9 MB, free: 9.309 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.2866, allocations: 127.9 kB / 336 MB, free: 9.184 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002707/0.2869, allocations: 160 kB / 336.1 MB, free: 9.027 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.2871, allocations: 251.2 kB / 336.4 MB, free: 8.781 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004701/0.2876, allocations: 0.5406 MB / 336.9 MB, free: 8.238 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001247/0.2888, allocations: 1.399 MB / 338.3 MB, free: 6.836 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.2888, allocations: 0 / 338.3 MB, free: 6.836 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.2888, allocations: 0 / 338.3 MB, free: 6.836 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.2889, allocations: 4 kB / 338.3 MB, free: 6.832 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.002356/0.2912, allocations: 1.286 MB / 339.6 MB, free: 5.492 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.2913, allocations: 12.03 kB / 339.6 MB, free: 5.48 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.2914, allocations: 103.7 kB / 339.7 MB, free: 5.379 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005804/0.292, allocations: 0.509 MB / 340.2 MB, free: 4.828 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.416e-05/0.2921, allocations: 62.38 kB / 340.3 MB, free: 4.77 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.2922, allocations: 84.38 kB / 340.4 MB, free: 4.688 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.2936, allocations: 0.8769 MB / 341.3 MB, free: 3.793 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.2937, allocations: 0 / 341.3 MB, free: 3.793 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.841e-05/0.2937, allocations: 32 kB / 341.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.2938, allocations: 20 kB / 341.3 MB, free: 3.742 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.2952, allocations: 0.7886 MB / 342.1 MB, free: 2.957 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004378/0.2996, allocations: 3.049 MB / 345.2 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.3007, allocations: 0.65 MB / 345.8 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006355/0.3013, allocations: 410.3 kB / 346.2 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.2e-05/0.3014, allocations: 12.5 kB / 346.2 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.3014, allocations: 47.12 kB / 346.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 1.954e-06/0.3014, allocations: 4 kB / 346.3 MB, free: 14.65 MB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.00417/0.3056, allocations: 2.189 MB / 348.5 MB, free: 12.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.3057, allocations: 68.05 kB / 348.5 MB, free: 12.33 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000523/0.3062, allocations: 0.499 MB / 349 MB, free: 11.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.3062, allocations: 41.7 kB / 349.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002483/0.3065, allocations: 391.4 kB / 349.4 MB, free: 11.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.3067, allocations: 252.4 kB / 349.7 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002159/0.3069, allocations: 138.6 kB / 349.8 MB, free: 10.99 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3071, allocations: 370.8 kB / 350.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005832/0.3077, allocations: 309.9 kB / 350.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006454/0.3083, allocations: 429.1 kB / 350.9 MB, free: 9.859 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001221/0.3095, allocations: 0.7428 MB / 351.7 MB, free: 9.082 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3095, allocations: 0 / 351.7 MB, free: 9.082 MB / 286.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001875/0.3114, allocations: 1.036 MB / 352.7 MB, free: 8.039 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.3115, allocations: 8 kB / 352.7 MB, free: 8.031 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3115, allocations: 4 kB / 352.7 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005488/0.312, allocations: 180.7 kB / 352.9 MB, free: 7.848 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007827/0.3128, allocations: 187.7 kB / 353.1 MB, free: 7.664 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003796/0.3166, allocations: 2.861 MB / 355.9 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005454/0.3172, allocations: 36.03 kB / 356 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-05/0.3173, allocations: 31.98 kB / 356 MB, free: 4.602 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.0003221/0.3176, allocations: 217.7 kB / 356.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.3177, allocations: 71.16 kB / 356.3 MB, free: 4.309 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001695/0.3179, allocations: 94.16 kB / 356.4 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.3179, allocations: 11.94 kB / 356.4 MB, free: 4.199 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.712e-05/0.3179, allocations: 4 kB / 356.4 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.318, allocations: 3.984 kB / 356.4 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.319, allocations: 0.8339 MB / 357.2 MB, free: 3.301 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.319, allocations: 0 / 357.2 MB, free: 3.301 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007139/0.3197, allocations: 143.8 kB / 357.4 MB, free: 3.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005065/0.3203, allocations: 184.8 kB / 357.5 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.86e-05/0.3203, allocations: 27.97 kB / 357.6 MB, free: 2.949 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003796/0.3241, allocations: 2.862 MB / 360.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.3242, allocations: 3.938 kB / 360.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.3267, allocations: 1.373 MB / 361.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001878/0.3269, allocations: 136.2 kB / 361.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.3271, allocations: 24 kB / 362 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006039/0.3277, allocations: 47.95 kB / 362 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.3278, allocations: 52.7 kB / 362.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.466e-05/0.3279, allocations: 24.08 kB / 362.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004799/0.3284, allocations: 374.7 kB / 362.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3284, allocations: 0 / 362.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008647/0.3293, allocations: 224 kB / 362.7 MB, free: 13.67 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.0002672/0.3296, allocations: 127.2 kB / 362.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.3322, allocations: 1.025 MB / 363.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.3322, allocations: 7.984 kB / 363.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.3336, allocations: 0.6276 MB / 364.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007017/0.3343, allocations: 142.3 kB / 364.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00326/0.3375, allocations: 1.895 MB / 366.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005401/0.3381, allocations: 0.9577 MB / 367.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003629/0.3385, allocations: 88.98 kB / 367.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/0.3386, allocations: 51.42 kB / 367.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3386, allocations: 0 / 367.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of Templates: time 0.01912/0.3578, allocations: 10.44 MB / 378 MB, free: 14.22 MB / 318.1 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)