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.007098/0.007099, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.001324/0.001324, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.588/1.588, allocations: 205.1 MB / 222.6 MB, free: 4.527 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.001153/0.001153, allocations: 47.67 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1204, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00693/0.1273, allocations: 5.711 MB / 378.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003377/0.1308, allocations: 1.449 MB / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006469/0.1314, allocations: 12 kB / 380.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004198/0.1319, allocations: 158.4 kB / 380.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006089/0.1325, allocations: 277.4 kB / 380.8 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008786/0.1334, allocations: 359.4 kB / 381.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.1345, allocations: 1.242 MB / 382.4 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005713/0.1351, allocations: 425 kB / 382.8 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004911/0.1356, allocations: 450.6 kB / 383.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000553/0.1362, allocations: 0.533 MB / 383.8 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.1363, allocations: 124 kB / 383.9 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00024/0.1366, allocations: 156 kB / 384 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001976/0.1368, allocations: 247.2 kB / 384.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004637/0.1373, allocations: 0.5483 MB / 384.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.1386, allocations: 1.417 MB / 386.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1386, allocations: 0 / 386.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1386, allocations: 0 / 386.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.1387, allocations: 0 / 386.2 MB, free: 4.168 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.002479/0.1412, allocations: 1.308 MB / 387.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1412, allocations: 8.031 kB / 387.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001929/0.1414, allocations: 108.3 kB / 387.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007643/0.1422, allocations: 0.5211 MB / 388.2 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.61e-05/0.1422, allocations: 62.38 kB / 388.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.1424, allocations: 88.27 kB / 388.3 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.1439, allocations: 0.8847 MB / 389.2 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.1439, allocations: 4 kB / 389.2 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.802e-05/0.144, allocations: 28 kB / 389.2 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.144, allocations: 20 kB / 389.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.1455, allocations: 0.7847 MB / 390.1 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004634/0.1502, allocations: 3.022 MB / 393.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.1513, allocations: 0.6461 MB / 393.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006489/0.1519, allocations: 406.4 kB / 394.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.28e-05/0.152, allocations: 24.47 kB / 394.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.152, allocations: 47.06 kB / 394.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.094e-06/0.1521, allocations: 0 / 394.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.004345/0.1564, allocations: 2.206 MB / 396.4 MB, free: 9.715 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.1565, allocations: 64.06 kB / 396.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005902/0.1571, allocations: 0.5067 MB / 397 MB, free: 9.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.286e-05/0.1571, allocations: 37.7 kB / 397 MB, free: 9.082 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002772/0.1574, allocations: 400.4 kB / 397.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.1576, allocations: 269.7 kB / 397.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002295/0.1578, allocations: 126.7 kB / 397.8 MB, free: 8.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.158, allocations: 378.8 kB / 398.1 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000602/0.1586, allocations: 313.9 kB / 398.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006601/0.1593, allocations: 425.1 kB / 398.9 MB, free: 7.148 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.1606, allocations: 0.7428 MB / 399.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1606, allocations: 4 kB / 399.6 MB, free: 6.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001984/0.1626, allocations: 1.041 MB / 400.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.1626, allocations: 8 kB / 400.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1626, allocations: 0 / 400.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005473/0.1632, allocations: 184.6 kB / 400.8 MB, free: 5.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007662/0.164, allocations: 187.8 kB / 401 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003743/0.1677, allocations: 2.858 MB / 403.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006276/0.1684, allocations: 40.03 kB / 403.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-05/0.1684, allocations: 24 kB / 403.9 MB, free: 1.879 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.0003894/0.1688, allocations: 221.7 kB / 404.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.169, allocations: 79.52 kB / 404.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.1691, allocations: 82.19 kB / 404.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.1691, allocations: 7.938 kB / 404.3 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/0.1691, allocations: 7.984 kB / 404.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1692, allocations: 0 / 404.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.1702, allocations: 0.8416 MB / 405.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1702, allocations: 0 / 405.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006756/0.1709, allocations: 151.8 kB / 405.3 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005047/0.1714, allocations: 176.6 kB / 405.5 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.543e-05/0.1715, allocations: 27.98 kB / 405.5 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003782/0.1753, allocations: 2.851 MB / 408.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.1753, allocations: 3.938 kB / 408.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002807/0.1781, allocations: 1.4 MB / 409.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.1784, allocations: 140.6 kB / 409.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.471e-05/0.1785, allocations: 16 kB / 409.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005758/0.1791, allocations: 51.95 kB / 410 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.1792, allocations: 56.52 kB / 410 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.724e-05/0.1793, allocations: 24.17 kB / 410.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005115/0.1798, allocations: 354.9 kB / 410.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1798, allocations: 3.938 kB / 410.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009382/0.1808, allocations: 224.1 kB / 410.6 MB, free: 10.95 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.0002949/0.1811, allocations: 135.2 kB / 410.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.1834, allocations: 1.006 MB / 411.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1835, allocations: 4.062 kB / 411.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.1848, allocations: 0.6347 MB / 412.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007289/0.1856, allocations: 130.3 kB / 412.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.1889, allocations: 1.919 MB / 414.5 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000715/0.1896, allocations: 0.9577 MB / 415.4 MB, free: 6.078 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004034/0.19, allocations: 81.06 kB / 415.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.1902, allocations: 51.42 kB / 415.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of SimCode: time 2.054e-06/0.1902, allocations: 0 / 415.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of Templates: time 0.02098/0.2112, allocations: 10.58 MB / 426.1 MB, free: 11.34 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)