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.001015/0.001015, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.008559/0.008559, allocations: 169 kB / 16.26 MB, free: 6.652 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.531/1.531, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.0004619/0.0004622, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2741, allocations: 47.59 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005616/0.2798, allocations: 5.254 MB / 332.3 MB, free: 13.18 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003634/0.2834, allocations: 1.44 MB / 333.7 MB, free: 11.98 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006196/0.2841, allocations: 14.59 kB / 333.7 MB, free: 11.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003448/0.2844, allocations: 117.5 kB / 333.9 MB, free: 11.88 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007357/0.2852, allocations: 232.4 kB / 334.1 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008355/0.286, allocations: 311.8 kB / 334.4 MB, free: 11.41 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.2874, allocations: 1.167 MB / 335.6 MB, free: 10.71 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005431/0.2879, allocations: 352.5 kB / 335.9 MB, free: 10.45 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005528/0.2885, allocations: 382.5 kB / 336.3 MB, free: 10.08 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005118/0.289, allocations: 454 kB / 336.7 MB, free: 9.633 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.2891, allocations: 56 kB / 336.8 MB, free: 9.578 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000234/0.2894, allocations: 91.91 kB / 336.9 MB, free: 9.488 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001594/0.2895, allocations: 179.2 kB / 337 MB, free: 9.312 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004428/0.29, allocations: 499.2 kB / 337.5 MB, free: 8.816 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001068/0.2911, allocations: 1.301 MB / 338.8 MB, free: 7.512 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2911, allocations: 4 kB / 338.8 MB, free: 7.508 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.2911, allocations: 0 / 338.8 MB, free: 7.508 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.2911, allocations: 0 / 338.8 MB, free: 7.508 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.002181/0.2933, allocations: 1.142 MB / 340 MB, free: 6.316 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.2933, allocations: 11.97 kB / 340 MB, free: 6.305 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.2935, allocations: 103.7 kB / 340.1 MB, free: 6.203 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006429/0.2942, allocations: 0.509 MB / 340.6 MB, free: 5.652 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.474e-05/0.2942, allocations: 62.38 kB / 340.7 MB, free: 5.59 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.2944, allocations: 80.28 kB / 340.7 MB, free: 5.512 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.296, allocations: 0.8965 MB / 341.6 MB, free: 4.602 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/0.296, allocations: 0 / 341.6 MB, free: 4.602 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.171e-05/0.2961, allocations: 35.94 kB / 341.7 MB, free: 4.566 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.2961, allocations: 24 kB / 341.7 MB, free: 4.543 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.2977, allocations: 0.812 MB / 342.5 MB, free: 3.73 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004972/0.3027, allocations: 3.096 MB / 345.6 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.3039, allocations: 0.6579 MB / 346.3 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007031/0.3046, allocations: 422.4 kB / 346.7 MB, free: 15.44 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.239e-05/0.3047, allocations: 12.55 kB / 346.7 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.3047, allocations: 47.06 kB / 346.7 MB, free: 15.37 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 3.627e-06/0.3048, allocations: 0 / 346.7 MB, free: 15.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.004562/0.3093, allocations: 2.256 MB / 349 MB, free: 13.07 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.3094, allocations: 60.06 kB / 349 MB, free: 12.99 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006021/0.31, allocations: 0.5028 MB / 349.5 MB, free: 12.48 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.308e-05/0.3101, allocations: 41.7 kB / 349.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002698/0.3103, allocations: 391.5 kB / 350 MB, free: 12.04 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002/0.3106, allocations: 256.4 kB / 350.2 MB, free: 11.79 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.343e-05/0.3107, allocations: 61.69 kB / 350.3 MB, free: 11.72 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.3108, allocations: 378.8 kB / 350.6 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006064/0.3114, allocations: 321.9 kB / 351 MB, free: 11.03 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006766/0.3121, allocations: 437.1 kB / 351.4 MB, free: 10.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.3134, allocations: 0.774 MB / 352.2 MB, free: 9.762 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.3135, allocations: 0 / 352.2 MB, free: 9.762 MB / 286.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002066/0.3155, allocations: 1.067 MB / 353.2 MB, free: 8.68 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.3156, allocations: 8 kB / 353.2 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.3156, allocations: 8 kB / 353.2 MB, free: 8.664 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005717/0.3162, allocations: 172.7 kB / 353.4 MB, free: 8.492 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008156/0.317, allocations: 203.7 kB / 353.6 MB, free: 8.293 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003654/0.3207, allocations: 2.601 MB / 356.2 MB, free: 5.559 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006963/0.3214, allocations: 36.05 kB / 356.2 MB, free: 5.523 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.053e-05/0.3214, allocations: 35.92 kB / 356.3 MB, free: 5.488 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.000418/0.3219, allocations: 217.7 kB / 356.5 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.322, allocations: 71.09 kB / 356.6 MB, free: 5.195 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002013/0.3222, allocations: 90.17 kB / 356.6 MB, free: 5.105 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3222, allocations: 8 kB / 356.7 MB, free: 5.098 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.738e-05/0.3222, allocations: 4 kB / 356.7 MB, free: 5.094 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.3223, allocations: 3.984 kB / 356.7 MB, free: 5.09 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.3233, allocations: 0.8377 MB / 357.5 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3233, allocations: 0 / 357.5 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006996/0.324, allocations: 151.8 kB / 357.7 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005328/0.3246, allocations: 184.7 kB / 357.8 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.773e-05/0.3246, allocations: 23.98 kB / 357.9 MB, free: 3.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003368/0.328, allocations: 2.616 MB / 360.5 MB, free: 1.086 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.328, allocations: 3.938 kB / 360.5 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00258/0.3306, allocations: 1.424 MB / 361.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.3308, allocations: 136.2 kB / 362 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.161e-05/0.3309, allocations: 16 kB / 362 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005844/0.3315, allocations: 63.95 kB / 362.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.3316, allocations: 52.58 kB / 362.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.958e-05/0.3317, allocations: 19.98 kB / 362.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000395/0.3321, allocations: 366.8 kB / 362.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3321, allocations: 0 / 362.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007618/0.3329, allocations: 220 kB / 362.8 MB, free: 14.76 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.0002371/0.3331, allocations: 135.2 kB / 362.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002252/0.3354, allocations: 1.025 MB / 363.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.3354, allocations: 0 / 363.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.3367, allocations: 0.6548 MB / 364.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007903/0.3375, allocations: 134.7 kB / 364.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003351/0.3409, allocations: 2.402 MB / 367.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006425/0.3416, allocations: 0.9578 MB / 368.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003689/0.342, allocations: 77.06 kB / 368.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.3421, allocations: 47.42 kB / 368.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3421, allocations: 0 / 368.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of Templates: time 0.0177/0.3598, allocations: 9.73 MB / 377.9 MB, free: 15.5 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)