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.001571/0.00157, allocations: 109.1 kB / 16.62 MB, free: 6.738 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.001262/0.001262, allocations: 193.8 kB / 17.55 MB, free: 5.918 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.595/1.595, allocations: 205.1 MB / 223.4 MB, free: 12.43 MB / 190.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.001279/0.001279, allocations: 47.92 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.104, allocations: 46.63 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007934/0.112, allocations: 5.698 MB / 331.8 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003745/0.1158, allocations: 1.442 MB / 333.3 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.117, allocations: 23.94 kB / 333.3 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007795/0.1179, allocations: 111.1 kB / 333.4 MB, free: 13.47 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001237/0.1192, allocations: 238 kB / 333.6 MB, free: 13.24 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009329/0.1201, allocations: 311.7 kB / 333.9 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001496/0.1216, allocations: 1.234 MB / 335.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005701/0.1222, allocations: 417 kB / 335.6 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000664/0.1229, allocations: 466.5 kB / 336 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005043/0.1234, allocations: 0.5252 MB / 336.6 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001405/0.1235, allocations: 124 kB / 336.7 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002692/0.1238, allocations: 156 kB / 336.8 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.124, allocations: 255.2 kB / 337.1 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004186/0.1244, allocations: 0.5328 MB / 337.6 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001125/0.1256, allocations: 1.402 MB / 339 MB, free: 7.816 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1256, allocations: 0 / 339 MB, free: 7.816 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1256, allocations: 3.938 kB / 339 MB, free: 7.812 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.629e-05/0.1256, allocations: 4 kB / 339 MB, free: 7.809 MB / 286.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.002303/0.1279, allocations: 1.29 MB / 340.3 MB, free: 6.465 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.128, allocations: 8.031 kB / 340.3 MB, free: 6.457 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.1282, allocations: 107.7 kB / 340.4 MB, free: 6.352 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006041/0.1288, allocations: 0.5012 MB / 340.9 MB, free: 5.809 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/0.1288, allocations: 58.38 kB / 341 MB, free: 5.754 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.129, allocations: 88.28 kB / 341.1 MB, free: 5.668 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.1304, allocations: 0.8886 MB / 342 MB, free: 4.762 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.1304, allocations: 0 / 342 MB, free: 4.762 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.809e-05/0.1305, allocations: 32 kB / 342 MB, free: 4.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.1306, allocations: 16 kB / 342 MB, free: 4.715 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.132, allocations: 0.7886 MB / 342.8 MB, free: 3.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00452/0.1365, allocations: 3.056 MB / 345.9 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.1375, allocations: 0.65 MB / 346.5 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006176/0.1382, allocations: 410.3 kB / 346.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.909e-05/0.1382, allocations: 16.55 kB / 346.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.1383, allocations: 39.12 kB / 347 MB, free: 15.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.805e-06/0.1383, allocations: 0 / 347 MB, free: 15.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.004254/0.1425, allocations: 2.193 MB / 349.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.1426, allocations: 60.06 kB / 349.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005618/0.1432, allocations: 0.499 MB / 349.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.373e-05/0.1432, allocations: 37.7 kB / 349.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002443/0.1435, allocations: 399.4 kB / 350.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.1437, allocations: 248.4 kB / 350.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/0.1439, allocations: 138.6 kB / 350.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1441, allocations: 374.8 kB / 350.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005484/0.1446, allocations: 309.9 kB / 351.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006205/0.1452, allocations: 429.1 kB / 351.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.1464, allocations: 0.7428 MB / 352.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.1464, allocations: 0 / 352.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001901/0.1483, allocations: 1.036 MB / 353.4 MB, free: 9.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.1484, allocations: 8 kB / 353.4 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.1484, allocations: 4 kB / 353.4 MB, free: 9.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005624/0.149, allocations: 181.8 kB / 353.6 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007732/0.1497, allocations: 195.6 kB / 353.8 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003618/0.1534, allocations: 2.857 MB / 356.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006458/0.154, allocations: 35.97 kB / 356.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.397e-05/0.1541, allocations: 24 kB / 356.7 MB, free: 5.59 MB / 302.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.0003606/0.1545, allocations: 229.7 kB / 356.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.1546, allocations: 71.16 kB / 357 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001464/0.1547, allocations: 86.17 kB / 357.1 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.1548, allocations: 15.88 kB / 357.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.1548, allocations: 128 / 357.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1548, allocations: 8 kB / 357.1 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009264/0.1557, allocations: 0.8339 MB / 357.9 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1557, allocations: 0 / 357.9 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006799/0.1564, allocations: 151.8 kB / 358.1 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005329/0.157, allocations: 172.6 kB / 358.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-05/0.157, allocations: 23.98 kB / 358.3 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00355/0.1606, allocations: 2.866 MB / 361.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.1606, allocations: 15.92 kB / 361.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/0.163, allocations: 1.373 MB / 362.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.1632, allocations: 132.3 kB / 362.6 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.331e-05/0.1633, allocations: 16 kB / 362.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005584/0.1639, allocations: 55.95 kB / 362.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.1641, allocations: 56.45 kB / 362.8 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.044e-05/0.1641, allocations: 23.98 kB / 362.8 MB, free: 15.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003968/0.1645, allocations: 358.9 kB / 363.1 MB, free: 14.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1645, allocations: 0 / 363.1 MB, free: 14.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007347/0.1653, allocations: 224 kB / 363.4 MB, free: 14.66 MB / 318.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.0002436/0.1655, allocations: 135.2 kB / 363.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002348/0.1679, allocations: 1.025 MB / 364.5 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.1679, allocations: 0 / 364.5 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.1692, allocations: 0.6316 MB / 365.1 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008542/0.1701, allocations: 146.4 kB / 365.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003405/0.1735, allocations: 2.241 MB / 367.5 MB, free: 10.42 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006147/0.1741, allocations: 0.9539 MB / 368.5 MB, free: 9.438 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004698/0.1746, allocations: 85.05 kB / 368.6 MB, free: 9.355 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.1747, allocations: 59.34 kB / 368.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1747, allocations: 0 / 368.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of Templates: time 0.1784/0.3532, allocations: 10.31 MB / 378.9 MB, free: 52.3 MB / 318.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)