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.0009809/0.0009812, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.001017/0.001017, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.318/1.318, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0004377/0.0004377, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2596, allocations: 47.59 MB / 326.5 MB, free: 1.367 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005271/0.265, allocations: 4.943 MB / 331.4 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.2674, allocations: 1.392 MB / 332.8 MB, free: 12.29 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002803/0.2677, allocations: 22.16 kB / 332.8 MB, free: 12.28 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002516/0.2679, allocations: 122.5 kB / 333 MB, free: 12.18 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004286/0.2684, allocations: 232.5 kB / 333.2 MB, free: 11.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005739/0.269, allocations: 232 kB / 333.4 MB, free: 11.79 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.2702, allocations: 1.122 MB / 334.5 MB, free: 11.1 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004436/0.2706, allocations: 300.1 kB / 334.8 MB, free: 10.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003948/0.271, allocations: 372.5 kB / 335.2 MB, free: 10.72 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004507/0.2715, allocations: 442.8 kB / 335.6 MB, free: 10.3 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.191e-05/0.2716, allocations: 56 kB / 335.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001927/0.2718, allocations: 91.95 kB / 335.8 MB, free: 10.15 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.2719, allocations: 171.3 kB / 335.9 MB, free: 9.984 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.2721, allocations: 205.2 kB / 336.1 MB, free: 9.777 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008278/0.2729, allocations: 1.049 MB / 337.2 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2729, allocations: 0 / 337.2 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.2729, allocations: 0 / 337.2 MB, free: 8.727 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.273, allocations: 4 kB / 337.2 MB, free: 8.723 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.001949/0.2749, allocations: 1.154 MB / 338.3 MB, free: 7.52 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.275, allocations: 12.02 kB / 338.4 MB, free: 7.508 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.2751, allocations: 102.8 kB / 338.5 MB, free: 7.406 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.2757, allocations: 0.4886 MB / 338.9 MB, free: 6.879 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.515e-05/0.2757, allocations: 58 kB / 339 MB, free: 6.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.2759, allocations: 83.91 kB / 339.1 MB, free: 6.738 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.2773, allocations: 0.8844 MB / 340 MB, free: 5.84 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.2773, allocations: 0 / 340 MB, free: 5.84 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.417e-05/0.2774, allocations: 36 kB / 340 MB, free: 5.805 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.2774, allocations: 20 kB / 340 MB, free: 5.785 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.2789, allocations: 0.8158 MB / 340.8 MB, free: 4.969 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004224/0.2831, allocations: 3.088 MB / 343.9 MB, free: 1.758 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.2842, allocations: 0.6501 MB / 344.6 MB, free: 1.102 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006355/0.2848, allocations: 422.3 kB / 345 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.813e-05/0.2849, allocations: 20.5 kB / 345 MB, free: 0.668 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.2849, allocations: 39.12 kB / 345 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of pre-optimization done (n=67): time 3.176e-06/0.2849, allocations: 3.984 kB / 345 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of matching and sorting (n=71): time 0.004183/0.2891, allocations: 2.248 MB / 347.3 MB, free: 14.32 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.2892, allocations: 64.06 kB / 347.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005706/0.2898, allocations: 0.5028 MB / 347.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.839e-05/0.2898, allocations: 33.7 kB / 347.9 MB, free: 13.69 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002687/0.2901, allocations: 387.5 kB / 348.3 MB, free: 13.3 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.2903, allocations: 264.2 kB / 348.5 MB, free: 13.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.215e-05/0.2903, allocations: 16 kB / 348.5 MB, free: 13.03 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.2905, allocations: 374.8 kB / 348.9 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005636/0.2911, allocations: 317.9 kB / 349.2 MB, free: 12.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006356/0.2917, allocations: 441 kB / 349.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006545/0.2924, allocations: 374.9 kB / 350 MB, free: 11.51 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2924, allocations: 0 / 350 MB, free: 11.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00198/0.2944, allocations: 1.056 MB / 351.1 MB, free: 10.45 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.2944, allocations: 8 kB / 351.1 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.2944, allocations: 7.953 kB / 351.1 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000548/0.295, allocations: 172.7 kB / 351.3 MB, free: 10.26 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007904/0.2958, allocations: 195.7 kB / 351.5 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004016/0.2998, allocations: 2.597 MB / 354 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004921/0.3003, allocations: 40.05 kB / 354.1 MB, free: 7.297 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.515e-05/0.3004, allocations: 31.98 kB / 354.1 MB, free: 7.266 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.0003937/0.3008, allocations: 225.6 kB / 354.3 MB, free: 7.035 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.3009, allocations: 67.25 kB / 354.4 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001914/0.3011, allocations: 86.17 kB / 354.5 MB, free: 6.879 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.3011, allocations: 4 kB / 354.5 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/0.3011, allocations: 4 kB / 354.5 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3011, allocations: 3.984 kB / 354.5 MB, free: 6.867 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.3023, allocations: 0.8455 MB / 355.3 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3023, allocations: 0 / 355.3 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006769/0.303, allocations: 151.8 kB / 355.5 MB, free: 5.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004926/0.3035, allocations: 184.7 kB / 355.7 MB, free: 5.637 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.927e-05/0.3035, allocations: 28.11 kB / 355.7 MB, free: 5.609 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003521/0.3071, allocations: 2.605 MB / 358.3 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3071, allocations: 3.953 kB / 358.3 MB, free: 2.867 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.3095, allocations: 1.412 MB / 359.7 MB, free: 1.438 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.3096, allocations: 132.3 kB / 359.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.056e-05/0.3097, allocations: 19.98 kB / 359.9 MB, free: 1.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004947/0.3102, allocations: 59.97 kB / 359.9 MB, free: 1.211 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.3104, allocations: 52.58 kB / 360 MB, free: 1.156 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.526e-05/0.3104, allocations: 28.06 kB / 360 MB, free: 1.129 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004612/0.3109, allocations: 354.8 kB / 360.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3109, allocations: 0 / 360.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008481/0.3118, allocations: 228 kB / 360.6 MB, free: 0.5625 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.0003293/0.3121, allocations: 131.2 kB / 360.7 MB, free: 436 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002392/0.3145, allocations: 1.018 MB / 361.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.3145, allocations: 4 kB / 361.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.316, allocations: 0.6514 MB / 362.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008885/0.3169, allocations: 130.5 kB / 362.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.3206, allocations: 2.293 MB / 364.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007318/0.3214, allocations: 0.9539 MB / 365.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004381/0.3218, allocations: 84.98 kB / 365.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.322, allocations: 55.41 kB / 365.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.322, allocations: 0 / 365.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of Templates: time 0.01858/0.3406, allocations: 9.425 MB / 375.3 MB, free: 1.723 MB / 302.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)