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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007783/0.0007784, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.0008667/0.0008667, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.426/1.426, allocations: 205.4 MB / 223.4 MB, free: 5.512 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.0004093/0.0004093, allocations: 8 kB / 280.1 MB, free: 12.92 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.227, allocations: 47.6 MB / 327.7 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004613/0.2316, allocations: 4.948 MB / 332.7 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002486/0.2341, allocations: 1.396 MB / 334.1 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003184/0.2345, allocations: 14.5 kB / 334.1 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002308/0.2347, allocations: 122.3 kB / 334.2 MB, free: 12.24 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004104/0.2351, allocations: 228.5 kB / 334.4 MB, free: 12.04 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.2357, allocations: 235.6 kB / 334.7 MB, free: 11.85 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.2368, allocations: 1.119 MB / 335.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004664/0.2373, allocations: 303.1 kB / 336.1 MB, free: 10.98 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005325/0.2379, allocations: 364.9 kB / 336.4 MB, free: 10.77 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004907/0.2384, allocations: 454.1 kB / 336.9 MB, free: 10.32 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.26e-05/0.2385, allocations: 52 kB / 336.9 MB, free: 10.27 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.2387, allocations: 91.95 kB / 337 MB, free: 10.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.2388, allocations: 171.3 kB / 337.2 MB, free: 10.02 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.239, allocations: 213.2 kB / 337.4 MB, free: 9.801 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000855/0.2399, allocations: 1.041 MB / 338.4 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2399, allocations: 0 / 338.4 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2399, allocations: 0 / 338.4 MB, free: 8.758 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.2399, allocations: 0 / 338.4 MB, free: 8.758 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.002109/0.242, allocations: 1.154 MB / 339.6 MB, free: 7.555 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.2421, allocations: 8.031 kB / 339.6 MB, free: 7.547 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.2422, allocations: 102.8 kB / 339.7 MB, free: 7.445 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006316/0.2429, allocations: 0.4925 MB / 340.2 MB, free: 6.914 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.487e-05/0.2429, allocations: 62 kB / 340.3 MB, free: 6.852 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.2431, allocations: 91.91 kB / 340.3 MB, free: 6.762 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.2446, allocations: 0.8766 MB / 341.2 MB, free: 5.871 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.2446, allocations: 7.938 kB / 341.2 MB, free: 5.863 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.492e-05/0.2447, allocations: 32 kB / 341.3 MB, free: 5.832 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.2447, allocations: 23.94 kB / 341.3 MB, free: 5.809 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.2463, allocations: 0.8004 MB / 342.1 MB, free: 5.008 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00503/0.2513, allocations: 3.092 MB / 345.2 MB, free: 1.793 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.2523, allocations: 0.654 MB / 345.8 MB, free: 1.133 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000646/0.253, allocations: 418.4 kB / 346.2 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.686e-05/0.2531, allocations: 16.5 kB / 346.3 MB, free: 0.707 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.2531, allocations: 47.12 kB / 346.3 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of pre-optimization done (n=67): time 3.888e-06/0.2531, allocations: 4 kB / 346.3 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of matching and sorting (n=71): time 0.004191/0.2573, allocations: 2.24 MB / 348.5 MB, free: 14.36 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.2574, allocations: 64.06 kB / 348.6 MB, free: 14.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005609/0.258, allocations: 0.4989 MB / 349.1 MB, free: 13.77 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.985e-05/0.258, allocations: 41.7 kB / 349.1 MB, free: 13.73 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.2583, allocations: 395.5 kB / 349.5 MB, free: 13.33 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.2585, allocations: 256.3 kB / 349.8 MB, free: 13.08 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.185e-05/0.2585, allocations: 16 kB / 349.8 MB, free: 13.06 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.2587, allocations: 378.8 kB / 350.2 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006032/0.2593, allocations: 313.9 kB / 350.5 MB, free: 12.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000645/0.26, allocations: 441.1 kB / 350.9 MB, free: 11.91 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006847/0.2607, allocations: 371 kB / 351.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.2607, allocations: 3.984 kB / 351.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001895/0.2626, allocations: 1.052 MB / 352.3 MB, free: 10.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.2626, allocations: 8 kB / 352.3 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.2626, allocations: 11.95 kB / 352.3 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005447/0.2632, allocations: 184.6 kB / 352.5 MB, free: 10.28 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008086/0.264, allocations: 191.8 kB / 352.7 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003423/0.2674, allocations: 2.593 MB / 355.3 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005234/0.268, allocations: 40.05 kB / 355.3 MB, free: 7.328 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-05/0.268, allocations: 31.98 kB / 355.4 MB, free: 7.297 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 (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.0003704/0.2684, allocations: 221.6 kB / 355.6 MB, free: 7.07 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.2685, allocations: 67.25 kB / 355.7 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001816/0.2687, allocations: 86.17 kB / 355.7 MB, free: 6.914 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.2687, allocations: 12 kB / 355.8 MB, free: 6.902 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.2688, allocations: 0 / 355.8 MB, free: 6.902 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.2688, allocations: 3.984 kB / 355.8 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009649/0.2697, allocations: 0.8416 MB / 356.6 MB, free: 6.004 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.2698, allocations: 0 / 356.6 MB, free: 6.004 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000657/0.2704, allocations: 155.8 kB / 356.8 MB, free: 5.852 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004871/0.2709, allocations: 189 kB / 356.9 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.865e-05/0.271, allocations: 23.98 kB / 357 MB, free: 5.641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00312/0.2741, allocations: 2.605 MB / 359.6 MB, free: 2.902 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2741, allocations: 3.953 kB / 359.6 MB, free: 2.898 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.2764, allocations: 1.408 MB / 361 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.2766, allocations: 140.2 kB / 361.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.041e-05/0.2767, allocations: 16 kB / 361.1 MB, free: 1.301 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004969/0.2772, allocations: 63.95 kB / 361.2 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.2773, allocations: 52.61 kB / 361.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.707e-05/0.2773, allocations: 23.98 kB / 361.3 MB, free: 1.16 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003847/0.2777, allocations: 354.8 kB / 361.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2777, allocations: 4 kB / 361.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007477/0.2785, allocations: 224 kB / 361.8 MB, free: 0.5938 MB / 286.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 (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.0002089/0.2787, allocations: 131.2 kB / 362 MB, free: 468 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002003/0.2807, allocations: 1.018 MB / 363 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2807, allocations: 0 / 363 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.2819, allocations: 0.6474 MB / 363.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006928/0.2826, allocations: 130.4 kB / 363.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.2856, allocations: 2.301 MB / 366.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004505/0.286, allocations: 0.95 MB / 367 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003576/0.2864, allocations: 89.05 kB / 367.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.2866, allocations: 51.42 kB / 367.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2866, allocations: 0 / 367.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Templates: time 0.01509/0.3017, allocations: 9.429 MB / 376.6 MB, free: 1.754 MB / 302.1 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)