Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.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.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001705/0.001704, 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.001737/0.001737, allocations: 197 kB / 16.53 MB, free: 6.664 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.743/1.743, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.002351/0.002351, allocations: 60.28 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3591, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.005162/0.3643, allocations: 2.758 MB / 328.1 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.3663, allocations: 0.679 MB / 328.7 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.3666, allocations: 4.594 kB / 328.7 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002417/0.3669, allocations: 44.22 kB / 328.8 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002743/0.3672, allocations: 92.09 kB / 328.9 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003577/0.3676, allocations: 96.91 kB / 329 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006479/0.3682, allocations: 376.1 kB / 329.3 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003527/0.3686, allocations: 120.3 kB / 329.5 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.3688, allocations: 139.6 kB / 329.6 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.3691, allocations: 167.9 kB / 329.8 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.763e-05/0.3692, allocations: 38.08 kB / 329.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.707e-05/0.3693, allocations: 35.44 kB / 329.8 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.34e-05/0.3694, allocations: 70.47 kB / 329.9 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002109/0.3696, allocations: 163.5 kB / 330.1 MB, free: 14.24 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004693/0.3701, allocations: 372.3 kB / 330.4 MB, free: 13.96 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3701, allocations: 0 / 330.4 MB, free: 13.96 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.3701, allocations: 1.094 kB / 330.4 MB, free: 13.96 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.3701, allocations: 4 kB / 330.4 MB, free: 13.96 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001646/0.3718, allocations: 0.6456 MB / 331.1 MB, free: 13.38 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.3718, allocations: 10 kB / 331.1 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.372, allocations: 32.62 kB / 331.1 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003923/0.3724, allocations: 280.2 kB / 331.4 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.3724, allocations: 19.38 kB / 331.4 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.324e-05/0.3725, allocations: 24.72 kB / 331.4 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007633/0.3733, allocations: 305.4 kB / 331.7 MB, free: 12.87 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.3733, allocations: 0 / 331.7 MB, free: 12.87 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.32e-05/0.3733, allocations: 7.219 kB / 331.7 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.3733, allocations: 6.531 kB / 331.7 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008627/0.3742, allocations: 255.2 kB / 332 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002025/0.3762, allocations: 1.105 MB / 333.1 MB, free: 11.76 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009045/0.3772, allocations: 206 kB / 333.3 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003541/0.3775, allocations: 93.91 kB / 333.4 MB, free: 11.6 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.288e-05/0.3776, allocations: 2 kB / 333.4 MB, free: 11.6 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006201/0.3782, allocations: 180.8 kB / 333.6 MB, free: 11.42 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 1.303e-06/0.3782, allocations: 0 / 333.6 MB, free: 11.42 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.002266/0.3805, allocations: 0.5066 MB / 334.1 MB, free: 10.89 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.729e-05/0.3806, allocations: 110.8 kB / 334.2 MB, free: 10.75 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003934/0.381, allocations: 282.6 kB / 334.5 MB, free: 10.47 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.496e-05/0.381, allocations: 29.7 kB / 334.5 MB, free: 10.43 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.3812, allocations: 195.5 kB / 334.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.604e-05/0.3813, allocations: 39.45 kB / 334.7 MB, free: 10.2 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.3814, allocations: 49.94 kB / 334.8 MB, free: 10.14 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3816, allocations: 334.8 kB / 335.1 MB, free: 9.809 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/0.3819, allocations: 92.16 kB / 335.2 MB, free: 9.719 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004282/0.3824, allocations: 202.1 kB / 335.4 MB, free: 9.473 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000769/0.3831, allocations: 305.3 kB / 335.7 MB, free: 9.125 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.3832, allocations: 11.94 kB / 335.7 MB, free: 9.113 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001284/0.3845, allocations: 415.7 kB / 336.1 MB, free: 8.691 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.627e-05/0.3845, allocations: 33.7 kB / 336.1 MB, free: 8.652 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.3846, allocations: 4 kB / 336.1 MB, free: 8.648 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004456/0.385, allocations: 80.83 kB / 336.2 MB, free: 8.566 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002277/0.3853, allocations: 43.91 kB / 336.3 MB, free: 8.523 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003256/0.3885, allocations: 1.719 MB / 338 MB, free: 6.664 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000426/0.389, allocations: 55.59 kB / 338 MB, free: 6.609 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.389, allocations: 20 kB / 338 MB, free: 6.59 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 21 * 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.0001961/0.3892, allocations: 145.8 kB / 338.2 MB, free: 6.438 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.78e-05/0.3893, allocations: 23.72 kB / 338.2 MB, free: 6.414 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.364e-05/0.3893, allocations: 21.7 kB / 338.2 MB, free: 6.395 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.3894, allocations: 4 kB / 338.2 MB, free: 6.391 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.3894, allocations: 3.938 kB / 338.2 MB, free: 6.387 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.3894, allocations: 0 / 338.2 MB, free: 6.387 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003648/0.3897, allocations: 305.3 kB / 338.5 MB, free: 6.039 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3898, allocations: 7.984 kB / 338.5 MB, free: 6.031 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.3899, allocations: 19.98 kB / 338.6 MB, free: 6.012 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002603/0.3902, allocations: 68.98 kB / 338.6 MB, free: 5.941 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.3902, allocations: 0 / 338.6 MB, free: 5.941 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002474/0.3927, allocations: 1.707 MB / 340.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3927, allocations: 0 / 340.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.3937, allocations: 321.4 kB / 340.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.3939, allocations: 112.8 kB / 340.8 MB, free: 3.633 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.242e-05/0.394, allocations: 3.984 kB / 340.8 MB, free: 3.629 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.3942, allocations: 27.97 kB / 340.8 MB, free: 3.602 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.3944, allocations: 19.97 kB / 340.8 MB, free: 3.582 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.3944, allocations: 8 kB / 340.8 MB, free: 3.574 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002904/0.3947, allocations: 205.9 kB / 341 MB, free: 3.371 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3947, allocations: 4 kB / 341 MB, free: 3.367 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004709/0.3952, allocations: 79.84 kB / 341.1 MB, free: 3.289 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 (7): * Single equations (assignments): 4 * 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.0002002/0.3954, allocations: 99.19 kB / 341.2 MB, free: 3.18 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.3965, allocations: 422.4 kB / 341.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3965, allocations: 0 / 341.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004374/0.397, allocations: 219.2 kB / 341.8 MB, free: 2.516 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.3973, allocations: 57.19 kB / 341.9 MB, free: 2.461 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.3985, allocations: 465.2 kB / 342.3 MB, free: 1.98 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/0.3989, allocations: 0.7558 MB / 343.1 MB, free: 1.199 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.399, allocations: 26.28 kB / 343.1 MB, free: 1.176 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.637e-05/0.3991, allocations: 23.38 kB / 343.1 MB, free: 1.152 MB / 270.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3991, allocations: 0 / 343.1 MB, free: 1.152 MB / 270.1 MB Notification: Performance of Templates: time 0.008341/0.4074, allocations: 4.166 MB / 347.3 MB, free: 12.98 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1)