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.008824/0.008824, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.002293/0.002293, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.592/1.592, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001222/0.001222, allocations: 52.38 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.113, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006667/0.1197, allocations: 5.699 MB / 378.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002887/0.1226, allocations: 1.446 MB / 380.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000381/0.123, allocations: 16 kB / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003436/0.1234, allocations: 154.4 kB / 380.5 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000506/0.1239, allocations: 281.4 kB / 380.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007146/0.1246, allocations: 347.4 kB / 381.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.1257, allocations: 1.242 MB / 382.4 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005151/0.1262, allocations: 428.9 kB / 382.8 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004843/0.1267, allocations: 458.5 kB / 383.2 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005713/0.1273, allocations: 0.5252 MB / 383.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.1274, allocations: 124 kB / 383.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002387/0.1277, allocations: 156 kB / 384 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001954/0.1279, allocations: 251.2 kB / 384.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004384/0.1283, allocations: 0.5406 MB / 384.8 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001205/0.1295, allocations: 1.406 MB / 386.2 MB, free: 4.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.1296, allocations: 0 / 386.2 MB, free: 4.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1296, allocations: 0 / 386.2 MB, free: 4.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.1296, allocations: 4 kB / 386.2 MB, free: 4.195 MB / 318.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.002532/0.1321, allocations: 1.286 MB / 387.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.1322, allocations: 12.02 kB / 387.5 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.1324, allocations: 107.7 kB / 387.6 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008128/0.1332, allocations: 0.5051 MB / 388.1 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.292e-05/0.1333, allocations: 66.38 kB / 388.2 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.1334, allocations: 92.25 kB / 388.3 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.135, allocations: 0.8769 MB / 389.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.135, allocations: 0 / 389.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-05/0.1351, allocations: 32 kB / 389.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/0.1351, allocations: 20 kB / 389.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.1366, allocations: 0.7847 MB / 390 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00459/0.1412, allocations: 3.029 MB / 393 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.1423, allocations: 0.6422 MB / 393.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006469/0.1429, allocations: 410.4 kB / 394.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.238e-05/0.143, allocations: 20.53 kB / 394.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.143, allocations: 39.12 kB / 394.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.054e-06/0.143, allocations: 0 / 394.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.004347/0.1474, allocations: 2.193 MB / 396.3 MB, free: 9.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.1475, allocations: 60.06 kB / 396.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005342/0.148, allocations: 0.5067 MB / 396.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.65e-05/0.1481, allocations: 37.7 kB / 396.9 MB, free: 9.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002586/0.1483, allocations: 399.5 kB / 397.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.1485, allocations: 248.4 kB / 397.6 MB, free: 8.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/0.1487, allocations: 138.6 kB / 397.7 MB, free: 8.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1489, allocations: 370.8 kB / 398 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008285/0.1498, allocations: 309.9 kB / 398.4 MB, free: 7.703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007276/0.1505, allocations: 425.1 kB / 398.8 MB, free: 7.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.1518, allocations: 0.7467 MB / 399.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1518, allocations: 0 / 399.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001941/0.1538, allocations: 1.044 MB / 400.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.1538, allocations: 8 kB / 400.6 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.1538, allocations: 8 kB / 400.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005411/0.1544, allocations: 176.7 kB / 400.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007672/0.1552, allocations: 191.7 kB / 400.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003704/0.1589, allocations: 2.854 MB / 403.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005462/0.1594, allocations: 40.03 kB / 403.8 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-05/0.1595, allocations: 24 kB / 403.8 MB, free: 1.977 MB / 334.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.0003474/0.1599, allocations: 221.7 kB / 404.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.16, allocations: 71.16 kB / 404.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001566/0.1602, allocations: 90.17 kB / 404.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.1602, allocations: 11.94 kB / 404.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.301e-05/0.1602, allocations: 0 / 404.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.1602, allocations: 7.922 kB / 404.2 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009861/0.1612, allocations: 0.8339 MB / 405.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.1612, allocations: 0 / 405.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000707/0.1619, allocations: 151.8 kB / 405.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004824/0.1624, allocations: 176.8 kB / 405.4 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.525e-05/0.1625, allocations: 23.98 kB / 405.4 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003498/0.166, allocations: 2.862 MB / 408.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.166, allocations: 3.938 kB / 408.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/0.1684, allocations: 1.388 MB / 409.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.1685, allocations: 140.2 kB / 409.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.13e-05/0.1686, allocations: 16 kB / 409.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005295/0.1691, allocations: 47.95 kB / 409.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.1692, allocations: 56.52 kB / 409.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.83e-05/0.1693, allocations: 27.98 kB / 410 MB, free: 11.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003956/0.1697, allocations: 354.9 kB / 410.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1697, allocations: 0 / 410.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007164/0.1704, allocations: 220 kB / 410.5 MB, free: 11.07 MB / 350.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.0002254/0.1707, allocations: 139.1 kB / 410.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.1728, allocations: 1.002 MB / 411.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.1728, allocations: 0 / 411.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001351/0.1742, allocations: 0.6354 MB / 412.3 MB, free: 9.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007501/0.1749, allocations: 138.4 kB / 412.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003038/0.178, allocations: 1.89 MB / 414.3 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004911/0.1785, allocations: 0.9539 MB / 415.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003128/0.1788, allocations: 77.06 kB / 415.3 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.179, allocations: 51.42 kB / 415.4 MB, free: 6.094 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.179, allocations: 4 kB / 415.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of Templates: time 0.01745/0.1964, allocations: 10.83 MB / 426.2 MB, free: 11.24 MB / 366.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)