Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 195.3 kB / 16.53 MB, free: 6.699 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.767/1.767, allocations: 205.1 MB / 222.4 MB, free: 4.629 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.00166/0.00166, allocations: 56.34 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3579, allocations: 46.63 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.004456/0.3624, allocations: 2.719 MB / 328 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.3641, allocations: 0.7186 MB / 328.8 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.3643, allocations: 3.312 kB / 328.8 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001822/0.3645, allocations: 39.23 kB / 328.8 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.3648, allocations: 84.7 kB / 328.9 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.3652, allocations: 94.66 kB / 329 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004803/0.3657, allocations: 348.6 kB / 329.3 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.3659, allocations: 85.69 kB / 329.4 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002312/0.3662, allocations: 129.4 kB / 329.5 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/0.3664, allocations: 156.2 kB / 329.7 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.014e-05/0.3664, allocations: 30 kB / 329.7 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.892e-05/0.3665, allocations: 29.34 kB / 329.7 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.044e-05/0.3666, allocations: 62.52 kB / 329.8 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.3668, allocations: 148.5 kB / 329.9 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003834/0.3672, allocations: 322.1 kB / 330.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3672, allocations: 0 / 330.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3672, allocations: 0 / 330.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.3672, allocations: 1.062 kB / 330.3 MB, free: 14.09 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001338/0.3686, allocations: 0.644 MB / 330.9 MB, free: 13.51 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3686, allocations: 9.375 kB / 330.9 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.963e-05/0.3687, allocations: 28.78 kB / 330.9 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.3691, allocations: 282.5 kB / 331.2 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.3692, allocations: 17.66 kB / 331.2 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.233e-05/0.3692, allocations: 17.84 kB / 331.2 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006646/0.3699, allocations: 258.4 kB / 331.5 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.3699, allocations: 0 / 331.5 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.37, allocations: 6.219 kB / 331.5 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.37, allocations: 5.625 kB / 331.5 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008496/0.3708, allocations: 257.1 kB / 331.8 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.3725, allocations: 0.8624 MB / 332.6 MB, free: 12.19 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008086/0.3734, allocations: 230.1 kB / 332.8 MB, free: 12.06 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003097/0.3737, allocations: 93.86 kB / 332.9 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.3737, allocations: 5.078 kB / 332.9 MB, free: 12.01 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005693/0.3743, allocations: 171 kB / 333.1 MB, free: 11.88 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 1.923e-06/0.3743, allocations: 0 / 333.1 MB, free: 11.88 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.002115/0.3764, allocations: 0.5884 MB / 333.7 MB, free: 11.31 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.609e-05/0.3765, allocations: 110.8 kB / 333.8 MB, free: 11.18 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003297/0.3769, allocations: 264.8 kB / 334.1 MB, free: 10.91 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.3769, allocations: 29.7 kB / 334.1 MB, free: 10.88 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.377, allocations: 171.9 kB / 334.3 MB, free: 10.7 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.411e-05/0.3771, allocations: 43.36 kB / 334.3 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.294e-05/0.3772, allocations: 41.7 kB / 334.3 MB, free: 10.61 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.3774, allocations: 338.8 kB / 334.7 MB, free: 10.27 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003197/0.3777, allocations: 104.7 kB / 334.8 MB, free: 10.17 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003388/0.3781, allocations: 155.5 kB / 334.9 MB, free: 9.988 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006046/0.3787, allocations: 254 kB / 335.2 MB, free: 9.715 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3787, allocations: 0 / 335.2 MB, free: 9.715 MB / 270.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001274/0.38, allocations: 411.4 kB / 335.6 MB, free: 9.297 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.901e-05/0.38, allocations: 37.88 kB / 335.6 MB, free: 9.254 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.3801, allocations: 8 kB / 335.6 MB, free: 9.246 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004971/0.3806, allocations: 104.7 kB / 335.7 MB, free: 9.141 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.3808, allocations: 39.97 kB / 335.8 MB, free: 9.102 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002231/0.383, allocations: 1.888 MB / 337.7 MB, free: 7.07 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003623/0.3834, allocations: 51.73 kB / 337.7 MB, free: 7.02 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.3834, allocations: 8 kB / 337.7 MB, free: 7.012 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004008/0.3838, allocations: 180.1 kB / 337.9 MB, free: 6.832 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000333/0.3842, allocations: 139.7 kB / 338 MB, free: 6.668 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005787/0.3848, allocations: 238.3 kB / 338.3 MB, free: 6.41 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.024e-06/0.3848, allocations: 0 / 338.3 MB, free: 6.41 MB / 270.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0008549/0.3857, allocations: 335.5 kB / 338.6 MB, free: 6.066 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.868e-05/0.3857, allocations: 29.7 kB / 338.6 MB, free: 6.031 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3857, allocations: 4 kB / 338.6 MB, free: 6.027 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001538/0.3859, allocations: 45.02 kB / 338.7 MB, free: 5.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.3861, allocations: 39.97 kB / 338.7 MB, free: 5.941 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/0.3878, allocations: 1.717 MB / 340.4 MB, free: 4.086 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.3882, allocations: 51.89 kB / 340.5 MB, free: 4.035 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.3882, allocations: 12 kB / 340.5 MB, free: 4.023 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002351/0.3885, allocations: 188.2 kB / 340.7 MB, free: 3.832 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.423e-05/0.3885, allocations: 23.72 kB / 340.7 MB, free: 3.809 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.191e-05/0.3886, allocations: 25.83 kB / 340.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.3886, allocations: 4 kB / 340.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3886, allocations: 0 / 340.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3886, allocations: 0 / 340.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000368/0.389, allocations: 297.4 kB / 341 MB, free: 3.441 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.389, allocations: 0 / 341 MB, free: 3.441 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.3892, allocations: 23.91 kB / 341 MB, free: 3.418 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000241/0.3894, allocations: 68.8 kB / 341.1 MB, free: 3.348 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.3895, allocations: 7.938 kB / 341.1 MB, free: 3.34 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001856/0.3913, allocations: 1.723 MB / 342.8 MB, free: 1.48 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3914, allocations: 3.938 kB / 342.8 MB, free: 1.477 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008323/0.3922, allocations: 326 kB / 343.2 MB, free: 1.137 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.112e-05/0.3923, allocations: 96.92 kB / 343.2 MB, free: 1.023 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.3923, allocations: 3.984 kB / 343.3 MB, free: 1.02 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.3926, allocations: 27.97 kB / 343.3 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3927, allocations: 27.91 kB / 343.3 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.3927, allocations: 4 kB / 343.3 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002331/0.393, allocations: 184.5 kB / 343.5 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.393, allocations: 0 / 343.5 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000656/0.3936, allocations: 127.7 kB / 343.6 MB, free: 0.6602 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000229/0.3939, allocations: 103.2 kB / 343.7 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.3955, allocations: 0.6872 MB / 344.4 MB, free: 15.81 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3955, allocations: 0.75 kB / 344.4 MB, free: 15.81 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004423/0.3959, allocations: 234.5 kB / 344.6 MB, free: 15.57 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.3963, allocations: 43.8 kB / 344.7 MB, free: 15.53 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.3973, allocations: 452.6 kB / 345.1 MB, free: 15.06 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.3976, allocations: 0.7483 MB / 345.9 MB, free: 14.29 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.3978, allocations: 26.28 kB / 345.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.322e-05/0.3978, allocations: 19.44 kB / 345.9 MB, free: 14.24 MB / 286.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3979, allocations: 8 kB / 345.9 MB, free: 14.23 MB / 286.1 MB Notification: Performance of Templates: time 0.008821/0.4067, allocations: 4.261 MB / 350.2 MB, free: 9.965 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1)