Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.007487/0.007487, allocations: 101.8 kB / 15.73 MB, free: 6.441 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.001545/0.001545, allocations: 195.7 kB / 16.67 MB, free: 6.352 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.516/1.516, allocations: 205.1 MB / 222.5 MB, free: 4.48 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.001124/0.001124, allocations: 51 kB / 326.6 MB, free: 14.52 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1032, allocations: 46.62 MB / 373.2 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006697/0.11, allocations: 5.695 MB / 378.9 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003302/0.1133, allocations: 1.45 MB / 380.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004441/0.1138, allocations: 15.94 kB / 380.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003532/0.1142, allocations: 166.4 kB / 380.5 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005361/0.1147, allocations: 273.4 kB / 380.8 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007829/0.1155, allocations: 351.4 kB / 381.1 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.1167, allocations: 1.242 MB / 382.4 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005351/0.1172, allocations: 425 kB / 382.8 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005623/0.1178, allocations: 458.5 kB / 383.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005569/0.1183, allocations: 0.5252 MB / 383.8 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000153/0.1185, allocations: 124 kB / 383.9 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002785/0.1188, allocations: 152 kB / 384 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001926/0.119, allocations: 259.2 kB / 384.3 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004376/0.1194, allocations: 0.5405 MB / 384.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001281/0.1207, allocations: 1.413 MB / 386.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1207, allocations: 0 / 386.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1207, allocations: 0 / 386.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.1208, allocations: 0 / 386.2 MB, free: 4.273 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.002309/0.1231, allocations: 1.32 MB / 387.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1231, allocations: 8.031 kB / 387.6 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.1233, allocations: 112.3 kB / 387.7 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007829/0.1241, allocations: 0.5133 MB / 388.2 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.164e-05/0.1242, allocations: 58.38 kB / 388.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.1243, allocations: 92.33 kB / 388.3 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.1258, allocations: 0.8769 MB / 389.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.1258, allocations: 8 kB / 389.2 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.04e-05/0.1259, allocations: 36 kB / 389.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.1259, allocations: 16 kB / 389.3 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.1274, allocations: 0.7886 MB / 390.1 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004612/0.132, allocations: 3.019 MB / 393.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.1332, allocations: 0.6422 MB / 393.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000649/0.1338, allocations: 414.3 kB / 394.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.655e-05/0.1339, allocations: 16.55 kB / 394.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.1339, allocations: 43.11 kB / 394.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 4.779e-06/0.1339, allocations: 0 / 394.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.004352/0.1383, allocations: 2.21 MB / 396.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.1384, allocations: 60.06 kB / 396.4 MB, free: 9.746 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006059/0.139, allocations: 0.5067 MB / 397 MB, free: 9.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.1391, allocations: 37.7 kB / 397 MB, free: 9.188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000257/0.1393, allocations: 396.5 kB / 397.4 MB, free: 8.793 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/0.1395, allocations: 269.7 kB / 397.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002339/0.1398, allocations: 130.7 kB / 397.8 MB, free: 8.395 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1399, allocations: 382.8 kB / 398.1 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000582/0.1405, allocations: 301.9 kB / 398.4 MB, free: 7.715 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006377/0.1412, allocations: 433.1 kB / 398.9 MB, free: 7.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.1424, allocations: 0.7428 MB / 399.6 MB, free: 6.477 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.1424, allocations: 0 / 399.6 MB, free: 6.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001963/0.1444, allocations: 1.044 MB / 400.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.1444, allocations: 11.98 kB / 400.7 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.1444, allocations: 4 kB / 400.7 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005617/0.145, allocations: 180.5 kB / 400.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007764/0.1458, allocations: 195.7 kB / 401 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003711/0.1495, allocations: 2.854 MB / 403.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007027/0.1502, allocations: 32.05 kB / 403.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.93e-05/0.1503, allocations: 27.98 kB / 403.9 MB, free: 1.98 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.0004233/0.1507, allocations: 221.7 kB / 404.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.1509, allocations: 75.53 kB / 404.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001743/0.1511, allocations: 94.16 kB / 404.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.647e-06/0.1511, allocations: 11.94 kB / 404.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.718e-05/0.1511, allocations: 0 / 404.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.1511, allocations: 3.984 kB / 404.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.1521, allocations: 0.8416 MB / 405.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1522, allocations: 4.125 kB / 405.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000669/0.1528, allocations: 143.8 kB / 405.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005113/0.1533, allocations: 180.6 kB / 405.5 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.534e-05/0.1534, allocations: 23.98 kB / 405.5 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003691/0.1571, allocations: 2.858 MB / 408.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.1571, allocations: 3.938 kB / 408.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.1596, allocations: 1.389 MB / 409.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.1598, allocations: 144.6 kB / 409.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.464e-05/0.1599, allocations: 19.98 kB / 409.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.1604, allocations: 47.97 kB / 410 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.1606, allocations: 52.52 kB / 410 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.543e-05/0.1606, allocations: 28.08 kB / 410.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004004/0.161, allocations: 362.8 kB / 410.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1611, allocations: 0 / 410.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007854/0.1618, allocations: 228.1 kB / 410.6 MB, free: 11.04 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.0002444/0.1621, allocations: 123.2 kB / 410.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002119/0.1642, allocations: 1.01 MB / 411.8 MB, free: 9.887 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.1642, allocations: 7.938 kB / 411.8 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.1655, allocations: 0.6315 MB / 412.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006596/0.1662, allocations: 134.5 kB / 412.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002986/0.1692, allocations: 1.911 MB / 414.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/0.1697, allocations: 0.9539 MB / 415.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003482/0.17, allocations: 81.06 kB / 415.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.1702, allocations: 51.41 kB / 415.5 MB, free: 6.051 MB / 350.1 MB Notification: Performance of SimCode: time 1.683e-06/0.1702, allocations: 0 / 415.5 MB, free: 6.051 MB / 350.1 MB Notification: Performance of Templates: time 0.01686/0.1871, allocations: 10.59 MB / 426.1 MB, free: 11.44 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)