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.007998/0.007998, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.001175/0.001175, allocations: 197.9 kB / 16.68 MB, free: 5.969 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.763/1.763, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001175/0.001175, allocations: 55.05 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1129, allocations: 46.61 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007319/0.1203, allocations: 5.699 MB / 378.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003393/0.1237, allocations: 1.453 MB / 380.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.1248, allocations: 19.94 kB / 380.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000689/0.1255, allocations: 154.4 kB / 380.5 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001175/0.1267, allocations: 269.5 kB / 380.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009966/0.1277, allocations: 359.4 kB / 381.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001483/0.1292, allocations: 1.246 MB / 382.4 MB, free: 8.078 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000626/0.1299, allocations: 417 kB / 382.8 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006505/0.1305, allocations: 458.5 kB / 383.2 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005925/0.1311, allocations: 0.5253 MB / 383.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.1313, allocations: 124 kB / 383.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000297/0.1316, allocations: 164 kB / 384 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.1319, allocations: 251.2 kB / 384.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004896/0.1324, allocations: 0.5406 MB / 384.8 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001391/0.1338, allocations: 1.42 MB / 386.2 MB, free: 4.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1338, allocations: 0 / 386.2 MB, free: 4.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1338, allocations: 0 / 386.2 MB, free: 4.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.478e-05/0.1338, allocations: 4 kB / 386.2 MB, free: 4.172 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.002366/0.1362, allocations: 1.308 MB / 387.5 MB, free: 2.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.1362, allocations: 12.03 kB / 387.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.1364, allocations: 108.3 kB / 387.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007706/0.1372, allocations: 0.5172 MB / 388.2 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.1373, allocations: 58.38 kB / 388.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.1374, allocations: 88.27 kB / 388.3 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.1389, allocations: 0.8847 MB / 389.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.139, allocations: 3.984 kB / 389.2 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.147e-05/0.1391, allocations: 32 kB / 389.2 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.1391, allocations: 20 kB / 389.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.1406, allocations: 0.7886 MB / 390.1 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004912/0.1455, allocations: 3.007 MB / 393.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.1467, allocations: 0.6578 MB / 393.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006628/0.1474, allocations: 406.4 kB / 394.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.495e-05/0.1475, allocations: 12.55 kB / 394.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.1475, allocations: 47.12 kB / 394.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.996e-06/0.1475, allocations: 0 / 394.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.004522/0.152, allocations: 2.214 MB / 396.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.1521, allocations: 60.06 kB / 396.4 MB, free: 9.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005877/0.1527, allocations: 0.5067 MB / 397 MB, free: 9.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.955e-05/0.1528, allocations: 41.7 kB / 397 MB, free: 9.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002759/0.1531, allocations: 396.5 kB / 397.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.1533, allocations: 273.7 kB / 397.6 MB, free: 8.426 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002237/0.1535, allocations: 130.7 kB / 397.8 MB, free: 8.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.1537, allocations: 374.8 kB / 398.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005924/0.1543, allocations: 309.9 kB / 398.4 MB, free: 7.613 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000688/0.155, allocations: 429.1 kB / 398.9 MB, free: 7.156 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.1563, allocations: 0.7389 MB / 399.6 MB, free: 6.383 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1563, allocations: 0 / 399.6 MB, free: 6.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002028/0.1584, allocations: 1.041 MB / 400.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.1584, allocations: 15.94 kB / 400.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.1584, allocations: 4 kB / 400.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005383/0.159, allocations: 184.5 kB / 400.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009009/0.1599, allocations: 191.7 kB / 401 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00388/0.1638, allocations: 2.854 MB / 403.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007063/0.1645, allocations: 32.03 kB / 403.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.554e-05/0.1646, allocations: 28 kB / 403.9 MB, free: 1.887 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.0005106/0.1651, allocations: 217.7 kB / 404.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.1652, allocations: 79.52 kB / 404.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.1654, allocations: 82.19 kB / 404.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.1654, allocations: 11.94 kB / 404.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.706e-05/0.1655, allocations: 4 kB / 404.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.1655, allocations: 7.984 kB / 404.3 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.1666, allocations: 0.8416 MB / 405.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.1666, allocations: 3.984 kB / 405.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006839/0.1673, allocations: 143.8 kB / 405.3 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005499/0.1678, allocations: 180.6 kB / 405.5 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.518e-05/0.1679, allocations: 27.97 kB / 405.5 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003543/0.1715, allocations: 2.854 MB / 408.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1715, allocations: 3.938 kB / 408.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002579/0.1741, allocations: 1.389 MB / 409.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002097/0.1743, allocations: 144.6 kB / 409.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.849e-05/0.1744, allocations: 16 kB / 409.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.1749, allocations: 51.95 kB / 410 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.175, allocations: 56.52 kB / 410 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.187e-05/0.1751, allocations: 24.23 kB / 410.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000447/0.1756, allocations: 362.9 kB / 410.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1756, allocations: 0 / 410.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000788/0.1764, allocations: 224.1 kB / 410.6 MB, free: 10.96 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.0002265/0.1766, allocations: 135.2 kB / 410.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002183/0.1788, allocations: 1.006 MB / 411.8 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.1788, allocations: 0 / 411.8 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001416/0.1802, allocations: 0.6393 MB / 412.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007262/0.181, allocations: 138.3 kB / 412.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.1841, allocations: 1.899 MB / 414.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006072/0.1847, allocations: 0.9577 MB / 415.4 MB, free: 6.094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003361/0.185, allocations: 85.05 kB / 415.5 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.1852, allocations: 51.42 kB / 415.5 MB, free: 5.957 MB / 350.1 MB Notification: Performance of SimCode: time 1.282e-06/0.1852, allocations: 0 / 415.5 MB, free: 5.957 MB / 350.1 MB Notification: Performance of Templates: time 0.01819/0.2034, allocations: 10.59 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)