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.001218/0.001218, allocations: 108 kB / 15.6 MB, free: 132 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.001419/0.001419, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.495/1.495, allocations: 205.1 MB / 222.4 MB, free: 4.547 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.001363/0.001363, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2652, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006549/0.2718, allocations: 5.705 MB / 331 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003206/0.275, allocations: 1.449 MB / 332.5 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005267/0.2755, allocations: 17.97 kB / 332.5 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003839/0.276, allocations: 157.8 kB / 332.6 MB, free: 11.93 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006553/0.2766, allocations: 272.3 kB / 332.9 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008003/0.2774, allocations: 357.2 kB / 333.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.2788, allocations: 1.23 MB / 334.5 MB, free: 10.64 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006098/0.2794, allocations: 424 kB / 334.9 MB, free: 10.28 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006702/0.2801, allocations: 462.5 kB / 335.3 MB, free: 9.828 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005582/0.2807, allocations: 0.5214 MB / 335.9 MB, free: 9.305 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001571/0.2808, allocations: 124 kB / 336 MB, free: 9.184 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002896/0.2811, allocations: 164 kB / 336.1 MB, free: 9.023 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002078/0.2814, allocations: 255.2 kB / 336.4 MB, free: 8.773 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005118/0.2819, allocations: 0.5328 MB / 336.9 MB, free: 8.238 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001272/0.2832, allocations: 1.399 MB / 338.3 MB, free: 6.836 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2832, allocations: 3.938 kB / 338.3 MB, free: 6.832 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2832, allocations: 0 / 338.3 MB, free: 6.832 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.2832, allocations: 0 / 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.002377/0.2856, allocations: 1.294 MB / 339.6 MB, free: 5.484 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2856, allocations: 8.031 kB / 339.6 MB, free: 5.477 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.2858, allocations: 107.7 kB / 339.7 MB, free: 5.371 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006691/0.2865, allocations: 0.5051 MB / 340.2 MB, free: 4.824 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.951e-05/0.2866, allocations: 58.38 kB / 340.3 MB, free: 4.77 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.2867, allocations: 88.36 kB / 340.4 MB, free: 4.684 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.2885, allocations: 0.8769 MB / 341.3 MB, free: 3.789 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/0.2885, allocations: 4 kB / 341.3 MB, free: 3.785 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.842e-05/0.2886, allocations: 36 kB / 341.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.2886, allocations: 20 kB / 341.3 MB, free: 3.73 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.2903, allocations: 0.7847 MB / 342.1 MB, free: 2.949 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005047/0.2954, allocations: 3.049 MB / 345.2 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.2966, allocations: 0.6462 MB / 345.8 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007016/0.2974, allocations: 414.3 kB / 346.2 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.677e-05/0.2974, allocations: 20.48 kB / 346.2 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.2975, allocations: 43.12 kB / 346.3 MB, free: 14.64 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 4.558e-06/0.2975, allocations: 0 / 346.3 MB, free: 14.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.004456/0.302, allocations: 2.189 MB / 348.5 MB, free: 12.4 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.302, allocations: 60.06 kB / 348.5 MB, free: 12.33 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006776/0.3027, allocations: 0.5029 MB / 349 MB, free: 11.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.241e-05/0.3028, allocations: 41.7 kB / 349.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.3031, allocations: 399.4 kB / 349.5 MB, free: 11.37 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.3033, allocations: 244.4 kB / 349.7 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002368/0.3036, allocations: 134.6 kB / 349.8 MB, free: 10.99 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.3038, allocations: 378.8 kB / 350.2 MB, free: 10.61 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006205/0.3044, allocations: 305.9 kB / 350.5 MB, free: 10.31 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000673/0.3051, allocations: 429.1 kB / 350.9 MB, free: 9.855 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.3063, allocations: 0.7428 MB / 351.7 MB, free: 9.078 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.3064, allocations: 0 / 351.7 MB, free: 9.078 MB / 286.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002045/0.3084, allocations: 1.04 MB / 352.7 MB, free: 8.031 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.3084, allocations: 8 kB / 352.7 MB, free: 8.023 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.3085, allocations: 0 / 352.7 MB, free: 8.023 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005439/0.309, allocations: 180.7 kB / 352.9 MB, free: 7.844 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007965/0.3098, allocations: 191.7 kB / 353.1 MB, free: 7.656 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00369/0.3135, allocations: 2.857 MB / 355.9 MB, free: 4.664 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006103/0.3142, allocations: 32.05 kB / 356 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.716e-05/0.3142, 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.000359/0.3146, allocations: 217.7 kB / 356.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.3147, allocations: 75.09 kB / 356.3 MB, free: 4.305 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.3149, allocations: 90.16 kB / 356.4 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.3149, allocations: 11.94 kB / 356.4 MB, free: 4.199 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.3149, allocations: 128 / 356.4 MB, free: 4.199 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.3149, allocations: 7.984 kB / 356.4 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000931/0.3159, allocations: 0.8378 MB / 357.2 MB, free: 3.297 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3159, allocations: 0 / 357.2 MB, free: 3.297 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006946/0.3166, allocations: 147.8 kB / 357.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004985/0.3171, allocations: 184.7 kB / 357.5 MB, free: 2.969 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.006e-05/0.3172, allocations: 23.98 kB / 357.6 MB, free: 2.945 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003502/0.3207, allocations: 2.854 MB / 360.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3207, allocations: 3.938 kB / 360.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.3231, allocations: 1.384 MB / 361.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.3232, allocations: 140.2 kB / 361.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.3233, allocations: 12 kB / 362 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005576/0.3239, allocations: 47.97 kB / 362 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.324, allocations: 60.7 kB / 362.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.995e-05/0.3241, allocations: 23.98 kB / 362.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004353/0.3245, allocations: 358.8 kB / 362.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.854e-06/0.3245, allocations: 0 / 362.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007881/0.3253, allocations: 231.9 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.0002335/0.3256, allocations: 135.5 kB / 362.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.328, allocations: 1.021 MB / 363.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.328, allocations: 0.6875 kB / 363.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.3294, allocations: 0.6387 MB / 364.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007285/0.3301, allocations: 138.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.003287/0.3334, allocations: 1.907 MB / 366.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005487/0.334, allocations: 0.9539 MB / 367.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003609/0.3344, allocations: 77.06 kB / 367.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.3345, allocations: 51.42 kB / 367.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3345, allocations: 4 kB / 367.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of Templates: time 0.01859/0.3531, allocations: 10.42 MB / 378 MB, free: 14.23 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)