Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_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.001373/0.001373, allocations: 104.4 kB / 18.36 MB, free: 4.641 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.001614/0.001614, allocations: 191 kB / 19.29 MB, free: 3.715 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.39/1.39, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001283/0.001283, allocations: 47.92 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08897/0.09027, allocations: 46.63 MB / 328.7 MB, free: 3.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00591/0.09622, allocations: 5.703 MB / 334.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002707/0.09896, allocations: 1.453 MB / 335.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000347/0.09933, allocations: 23.94 kB / 335.9 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003253/0.09972, allocations: 158.4 kB / 336.1 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004429/0.1002, allocations: 269.4 kB / 336.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006563/0.1008, allocations: 355.4 kB / 336.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009647/0.1018, allocations: 1.238 MB / 337.9 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004877/0.1023, allocations: 421 kB / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004279/0.1027, allocations: 466.5 kB / 338.8 MB, free: 9.668 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004967/0.1032, allocations: 0.5174 MB / 339.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001382/0.1034, allocations: 128 kB / 339.4 MB, free: 9.023 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002268/0.1036, allocations: 160 kB / 339.6 MB, free: 8.867 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00017/0.1038, allocations: 255.2 kB / 339.8 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004045/0.1042, allocations: 0.5366 MB / 340.4 MB, free: 8.078 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.1053, allocations: 1.406 MB / 341.8 MB, free: 6.668 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1053, allocations: 4 kB / 341.8 MB, free: 6.664 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1053, allocations: 0 / 341.8 MB, free: 6.664 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.1053, allocations: 0 / 341.8 MB, free: 6.664 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.002191/0.1075, allocations: 1.286 MB / 343.1 MB, free: 5.324 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.1076, allocations: 12.03 kB / 343.1 MB, free: 5.312 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.1077, allocations: 103.7 kB / 343.2 MB, free: 5.211 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006869/0.1084, allocations: 0.5129 MB / 343.7 MB, free: 4.656 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.858e-05/0.1085, allocations: 62.38 kB / 343.7 MB, free: 4.598 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.1086, allocations: 84.28 kB / 343.8 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.11, allocations: 0.8769 MB / 344.7 MB, free: 3.621 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.11, allocations: 3.938 kB / 344.7 MB, free: 3.617 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.155e-05/0.1101, allocations: 36 kB / 344.7 MB, free: 3.582 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.1101, allocations: 20 kB / 344.8 MB, free: 3.562 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/0.1115, allocations: 0.7886 MB / 345.5 MB, free: 2.777 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004597/0.1161, allocations: 3.025 MB / 348.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.1173, allocations: 0.6461 MB / 349.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006831/0.118, allocations: 410.4 kB / 349.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.936e-05/0.118, allocations: 12.56 kB / 349.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.1181, allocations: 43.03 kB / 349.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.484e-06/0.1181, allocations: 0 / 349.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.004314/0.1224, allocations: 2.189 MB / 351.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.58e-05/0.1225, allocations: 64.05 kB / 351.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006711/0.1232, allocations: 0.499 MB / 352.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.112e-05/0.1232, allocations: 41.64 kB / 352.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/0.1236, allocations: 395.4 kB / 352.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.1238, allocations: 256.3 kB / 353.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002254/0.124, allocations: 138.6 kB / 353.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1242, allocations: 378.8 kB / 353.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005776/0.1248, allocations: 305.9 kB / 353.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006692/0.1255, allocations: 433.1 kB / 354.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.1268, allocations: 0.7389 MB / 355.1 MB, free: 8.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1268, allocations: 0 / 355.1 MB, free: 8.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001898/0.1288, allocations: 1.044 MB / 356.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.1288, allocations: 4 kB / 356.1 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.1288, allocations: 4 kB / 356.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005624/0.1294, allocations: 180.6 kB / 356.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008065/0.1302, allocations: 187.8 kB / 356.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003877/0.1341, allocations: 2.863 MB / 359.3 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005736/0.1347, allocations: 32.03 kB / 359.4 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-05/0.1347, allocations: 35.92 kB / 359.4 MB, free: 4.449 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.0003903/0.1351, allocations: 217.8 kB / 359.6 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.1353, allocations: 71.16 kB / 359.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001792/0.1354, allocations: 90.17 kB / 359.8 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.347e-06/0.1355, allocations: 11.94 kB / 359.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.85e-05/0.1355, allocations: 4 kB / 359.8 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.455e-06/0.1355, allocations: 3.984 kB / 359.8 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.1365, allocations: 0.8261 MB / 360.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1365, allocations: 4 kB / 360.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006823/0.1372, allocations: 143.8 kB / 360.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000495/0.1377, allocations: 178.5 kB / 360.9 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.67e-05/0.1378, allocations: 31.91 kB / 361 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003508/0.1413, allocations: 2.858 MB / 363.8 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1413, allocations: 3.938 kB / 363.8 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/0.1438, allocations: 1.377 MB / 365.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001746/0.144, allocations: 140.3 kB / 365.4 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.985e-05/0.1441, allocations: 16 kB / 365.4 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005376/0.1446, allocations: 59.94 kB / 365.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.1448, allocations: 52.52 kB / 365.5 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.167e-05/0.1448, allocations: 27.98 kB / 365.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003885/0.1452, allocations: 350.9 kB / 365.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1452, allocations: 0 / 365.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000764/0.146, allocations: 224 kB / 366.1 MB, free: 13.55 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.0002259/0.1462, allocations: 139.2 kB / 366.2 MB, free: 13.4 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.1483, allocations: 1.006 MB / 367.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.1483, allocations: 4 kB / 367.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.1496, allocations: 0.6315 MB / 367.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006626/0.1502, allocations: 138.2 kB / 368 MB, free: 11.6 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002968/0.1532, allocations: 1.89 MB / 369.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/0.1537, allocations: 0.95 MB / 370.8 MB, free: 8.699 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003083/0.154, allocations: 81.05 kB / 370.9 MB, free: 8.621 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.1542, allocations: 51.42 kB / 370.9 MB, free: 8.574 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1542, allocations: 4 kB / 370.9 MB, free: 8.57 MB / 318.1 MB Notification: Performance of Templates: time 0.1607/0.3149, allocations: 10.41 MB / 381.4 MB, free: 52.73 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)