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.001275/0.001276, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001466/0.001466, allocations: 189.7 kB / 16.25 MB, free: 6.625 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.85/1.85, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.001399/0.001399, allocations: 55.92 kB / 278.2 MB, free: 12.63 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.245, allocations: 46.63 MB / 324.9 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005864/0.251, allocations: 5.693 MB / 330.5 MB, free: 13.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003258/0.2543, allocations: 1.445 MB / 332 MB, free: 12.17 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007152/0.255, allocations: 14.41 kB / 332 MB, free: 12.17 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005542/0.2556, allocations: 118.2 kB / 332.1 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007366/0.2564, allocations: 240.3 kB / 332.4 MB, free: 11.86 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008552/0.2572, allocations: 309.9 kB / 332.7 MB, free: 11.6 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001413/0.2587, allocations: 1.23 MB / 333.9 MB, free: 10.86 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005938/0.2593, allocations: 425.6 kB / 334.3 MB, free: 10.58 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000731/0.26, allocations: 458.5 kB / 334.7 MB, free: 10.13 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005693/0.2606, allocations: 0.5214 MB / 335.3 MB, free: 9.605 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.2608, allocations: 127.9 kB / 335.4 MB, free: 9.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002883/0.261, allocations: 160 kB / 335.6 MB, free: 9.324 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002044/0.2613, allocations: 251.2 kB / 335.8 MB, free: 9.078 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005346/0.2618, allocations: 0.5367 MB / 336.3 MB, free: 8.539 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.2631, allocations: 1.403 MB / 337.7 MB, free: 7.133 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2631, allocations: 4 kB / 337.7 MB, free: 7.129 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2631, allocations: 0 / 337.7 MB, free: 7.129 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.2631, allocations: 0 / 337.7 MB, free: 7.129 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.002845/0.266, allocations: 1.282 MB / 339 MB, free: 5.793 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.266, allocations: 12.03 kB / 339 MB, free: 5.781 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001685/0.2662, allocations: 103.7 kB / 339.1 MB, free: 5.68 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006039/0.2668, allocations: 0.509 MB / 339.6 MB, free: 5.129 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.423e-05/0.2669, allocations: 62.38 kB / 339.7 MB, free: 5.07 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.267, allocations: 80.38 kB / 339.8 MB, free: 4.992 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.2687, allocations: 0.8808 MB / 340.7 MB, free: 4.094 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.2688, allocations: 0 / 340.7 MB, free: 4.094 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.034e-05/0.2689, allocations: 36 kB / 340.7 MB, free: 4.059 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.217e-05/0.2689, allocations: 20 kB / 340.7 MB, free: 4.039 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.2704, allocations: 0.7886 MB / 341.5 MB, free: 3.254 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004622/0.275, allocations: 3.056 MB / 344.6 MB, free: 80 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.2761, allocations: 0.6461 MB / 345.2 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006317/0.2768, allocations: 410.3 kB / 345.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.422e-05/0.2768, allocations: 8.562 kB / 345.6 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.2769, allocations: 43.12 kB / 345.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 2.294e-06/0.2769, allocations: 0 / 345.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.004154/0.281, allocations: 2.189 MB / 347.9 MB, free: 12.72 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.2811, allocations: 63.98 kB / 347.9 MB, free: 12.64 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005859/0.2817, allocations: 0.5029 MB / 348.4 MB, free: 12.13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.171e-05/0.2818, allocations: 37.7 kB / 348.5 MB, free: 12.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.282, allocations: 395.4 kB / 348.8 MB, free: 11.7 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.2822, allocations: 256.3 kB / 349.1 MB, free: 11.44 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.2825, allocations: 138.6 kB / 349.2 MB, free: 11.3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2826, allocations: 374.8 kB / 349.6 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005683/0.2832, allocations: 301.9 kB / 349.9 MB, free: 10.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006192/0.2838, allocations: 429.1 kB / 350.3 MB, free: 10.18 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.285, allocations: 0.7428 MB / 351 MB, free: 9.398 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.285, allocations: 4 kB / 351.1 MB, free: 9.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001889/0.2869, allocations: 1.04 MB / 352.1 MB, free: 8.344 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.287, allocations: 4 kB / 352.1 MB, free: 8.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.287, allocations: 4 kB / 352.1 MB, free: 8.336 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005594/0.2876, allocations: 180.7 kB / 352.3 MB, free: 8.156 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007632/0.2883, allocations: 187.8 kB / 352.5 MB, free: 7.973 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003649/0.292, allocations: 2.869 MB / 355.3 MB, free: 4.969 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005939/0.2926, allocations: 32.03 kB / 355.4 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.043e-05/0.2927, allocations: 35.98 kB / 355.4 MB, free: 4.902 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.0003501/0.293, allocations: 213.7 kB / 355.6 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.2932, allocations: 67.16 kB / 355.7 MB, free: 4.617 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001546/0.2933, allocations: 94.16 kB / 355.8 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.2933, allocations: 11.94 kB / 355.8 MB, free: 4.508 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.2934, allocations: 4 kB / 355.8 MB, free: 4.504 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/0.2934, allocations: 3.984 kB / 355.8 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000972/0.2943, allocations: 0.8339 MB / 356.6 MB, free: 3.609 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2944, allocations: 0 / 356.6 MB, free: 3.609 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006799/0.295, allocations: 147.8 kB / 356.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000518/0.2956, allocations: 188.7 kB / 356.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.474e-05/0.2956, allocations: 19.97 kB / 357 MB, free: 3.258 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003585/0.2992, allocations: 2.862 MB / 359.8 MB, free: 260 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2993, allocations: 4.188 kB / 359.8 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002598/0.3019, allocations: 1.381 MB / 361.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.3021, allocations: 144.2 kB / 361.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.3022, allocations: 16 kB / 361.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005741/0.3028, allocations: 51.95 kB / 361.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.3029, allocations: 56.52 kB / 361.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.068e-05/0.303, allocations: 23.98 kB / 361.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000402/0.3034, allocations: 358.8 kB / 361.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3034, allocations: 0 / 361.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008042/0.3042, allocations: 224 kB / 362.1 MB, free: 13.97 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.0002607/0.3045, allocations: 135.5 kB / 362.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002518/0.307, allocations: 1.033 MB / 363.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.3071, allocations: 0 / 363.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001412/0.3085, allocations: 0.6279 MB / 363.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009182/0.3094, allocations: 142 kB / 364 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00382/0.3132, allocations: 2.243 MB / 366.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006158/0.3139, allocations: 0.9577 MB / 367.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004126/0.3143, allocations: 77.06 kB / 367.3 MB, free: 8.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.3145, allocations: 51.42 kB / 367.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3145, allocations: 0 / 367.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of Templates: time 0.01938/0.3338, allocations: 10.34 MB / 377.7 MB, free: 14.28 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)