Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001852/0.001852, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002471/0.002471, allocations: 194.2 kB / 16.13 MB, free: 6.668 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.946/1.946, allocations: 205.1 MB / 222 MB, free: 4.723 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.002109/0.002109, allocations: 47.94 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3522, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.004574/0.3568, allocations: 2.757 MB / 327.4 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.3584, allocations: 0.7231 MB / 328.2 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.3586, allocations: 8.062 kB / 328.2 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001944/0.3588, allocations: 28.02 kB / 328.2 MB, free: 15.13 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.359, allocations: 79.19 kB / 328.3 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003026/0.3593, allocations: 83.25 kB / 328.4 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004284/0.3597, allocations: 332.1 kB / 328.7 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002333/0.36, allocations: 66 kB / 328.7 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.3602, allocations: 121.5 kB / 328.9 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.3604, allocations: 140.4 kB / 329 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.352e-05/0.3605, allocations: 18.12 kB / 329 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.212e-05/0.3606, allocations: 17.31 kB / 329 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.522e-05/0.3607, allocations: 54.97 kB / 329.1 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.3609, allocations: 140.9 kB / 329.2 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004128/0.3613, allocations: 306.1 kB / 329.5 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3613, allocations: 4 kB / 329.5 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3613, allocations: 1.188 kB / 329.5 MB, free: 14.22 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.3613, allocations: 0 / 329.5 MB, free: 14.22 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.001492/0.3628, allocations: 0.6408 MB / 330.2 MB, free: 13.64 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.3629, allocations: 8.812 kB / 330.2 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.936e-05/0.363, allocations: 27.81 kB / 330.2 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004721/0.3635, allocations: 276.4 kB / 330.5 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.424e-05/0.3635, allocations: 16.39 kB / 330.5 MB, free: 13.35 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.73e-05/0.3636, allocations: 21.75 kB / 330.5 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007804/0.3644, allocations: 251 kB / 330.8 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3644, allocations: 0 / 330.8 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.838e-05/0.3644, allocations: 13.92 kB / 330.8 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.3645, allocations: 5.062 kB / 330.8 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008984/0.3654, allocations: 254.3 kB / 331 MB, free: 13.06 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.3672, allocations: 0.8667 MB / 331.9 MB, free: 12.32 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007924/0.368, allocations: 225.2 kB / 332.1 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000339/0.3683, allocations: 97.75 kB / 332.2 MB, free: 12.15 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.372e-05/0.3684, allocations: 1.156 kB / 332.2 MB, free: 12.15 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006457/0.369, allocations: 179.6 kB / 332.4 MB, free: 12.01 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 1.683e-06/0.369, allocations: 0 / 332.4 MB, free: 12.01 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.002446/0.3715, allocations: 0.5849 MB / 333 MB, free: 11.62 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/0.3716, allocations: 114.8 kB / 333.1 MB, free: 11.48 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003997/0.3721, allocations: 260.8 kB / 333.3 MB, free: 11.22 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.941e-05/0.3721, allocations: 29.7 kB / 333.4 MB, free: 11.18 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.3723, allocations: 171.9 kB / 333.5 MB, free: 11.01 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.938e-05/0.3724, allocations: 47.34 kB / 333.6 MB, free: 10.96 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.3725, allocations: 41.7 kB / 333.6 MB, free: 10.92 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.3727, allocations: 334.8 kB / 334 MB, free: 10.58 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003528/0.3731, allocations: 96.78 kB / 334 MB, free: 10.48 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003752/0.3735, allocations: 163.5 kB / 334.2 MB, free: 10.3 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006177/0.3741, allocations: 254.6 kB / 334.5 MB, free: 10.02 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3741, allocations: 0 / 334.5 MB, free: 10.02 MB / 270.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001124/0.3752, allocations: 419.4 kB / 334.9 MB, free: 9.598 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.209e-05/0.3753, allocations: 29.7 kB / 334.9 MB, free: 9.562 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.3753, allocations: 8.156 kB / 334.9 MB, free: 9.555 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005228/0.3758, allocations: 104.7 kB / 335 MB, free: 9.449 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001948/0.3761, allocations: 39.97 kB / 335 MB, free: 9.41 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.3782, allocations: 1.694 MB / 336.7 MB, free: 7.578 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003576/0.3786, allocations: 47.78 kB / 336.8 MB, free: 7.531 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.3786, allocations: 12 kB / 336.8 MB, free: 7.52 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004119/0.3791, allocations: 172.1 kB / 337 MB, free: 7.348 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003073/0.3794, allocations: 147.7 kB / 337.1 MB, free: 7.176 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005153/0.3799, allocations: 233.9 kB / 337.3 MB, free: 6.922 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.3799, allocations: 0 / 337.3 MB, free: 6.922 MB / 270.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0007674/0.3807, allocations: 335.6 kB / 337.7 MB, free: 6.578 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.3807, allocations: 33.7 kB / 337.7 MB, free: 6.539 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.3807, allocations: 0 / 337.7 MB, free: 6.539 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001499/0.3809, allocations: 44.83 kB / 337.7 MB, free: 6.492 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.3811, allocations: 31.97 kB / 337.8 MB, free: 6.461 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/0.3826, allocations: 1.546 MB / 339.3 MB, free: 4.781 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000379/0.383, allocations: 55.83 kB / 339.4 MB, free: 4.727 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.3831, allocations: 8 kB / 339.4 MB, free: 4.719 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.0001755/0.3833, allocations: 188.8 kB / 339.6 MB, free: 4.527 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.687e-05/0.3833, allocations: 23.75 kB / 339.6 MB, free: 4.504 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.676e-05/0.3834, allocations: 25.83 kB / 339.6 MB, free: 4.48 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.3834, allocations: 4 kB / 339.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3834, allocations: 0 / 339.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3834, allocations: 4 kB / 339.6 MB, free: 4.473 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003213/0.3837, allocations: 297.3 kB / 339.9 MB, free: 4.133 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3837, allocations: 0 / 339.9 MB, free: 4.133 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/0.3839, allocations: 23.91 kB / 339.9 MB, free: 4.109 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002336/0.3841, allocations: 72.73 kB / 340 MB, free: 4.035 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.3842, allocations: 0 / 340 MB, free: 4.035 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/0.3859, allocations: 1.593 MB / 341.6 MB, free: 2.312 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3859, allocations: 4.031 kB / 341.6 MB, free: 2.309 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008894/0.3868, allocations: 318 kB / 341.9 MB, free: 1.977 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.536e-05/0.3869, allocations: 104.8 kB / 342 MB, free: 1.855 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/0.387, allocations: 15.94 kB / 342 MB, free: 1.84 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.3872, allocations: 27.95 kB / 342.1 MB, free: 1.812 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.3873, allocations: 19.97 kB / 342.1 MB, free: 1.793 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.3874, allocations: 7.984 kB / 342.1 MB, free: 1.785 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002548/0.3876, allocations: 184.5 kB / 342.3 MB, free: 1.609 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3876, allocations: 0 / 342.3 MB, free: 1.609 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000659/0.3883, allocations: 127.7 kB / 342.4 MB, free: 1.484 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.0002342/0.3885, allocations: 107.2 kB / 342.5 MB, free: 1.367 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001518/0.3901, allocations: 0.6796 MB / 343.2 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3901, allocations: 0 / 343.2 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004662/0.3906, allocations: 231 kB / 343.4 MB, free: 408 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.391, allocations: 53.56 kB / 343.4 MB, free: 356 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.3924, allocations: 0.5181 MB / 344 MB, free: 15.8 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005527/0.3929, allocations: 0.7483 MB / 344.7 MB, free: 15.03 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001574/0.3931, allocations: 26.28 kB / 344.7 MB, free: 15 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.506e-05/0.3932, allocations: 19.44 kB / 344.8 MB, free: 14.98 MB / 286.1 MB Notification: Performance of SimCode: time 1.693e-06/0.3932, allocations: 0 / 344.8 MB, free: 14.98 MB / 286.1 MB Notification: Performance of Templates: time 0.009708/0.4029, allocations: 3.934 MB / 348.7 MB, free: 11.05 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1)