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.001358/0.001358, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001482/0.001482, allocations: 196.6 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.167/2.167, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.001498/0.001498, allocations: 47.94 kB / 278.2 MB, free: 12.63 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4469/0.4484, allocations: 46.63 MB / 324.9 MB, free: 2.137 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.005193/0.4537, allocations: 2.788 MB / 327.6 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.4556, allocations: 0.6795 MB / 328.3 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002127/0.4558, allocations: 4.844 kB / 328.3 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002311/0.4561, allocations: 36.03 kB / 328.4 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000246/0.4564, allocations: 76.22 kB / 328.4 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003644/0.4568, allocations: 76.97 kB / 328.5 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005997/0.4574, allocations: 376.2 kB / 328.9 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003371/0.4577, allocations: 115.6 kB / 329 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.458, allocations: 148.3 kB / 329.1 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.4582, allocations: 172.6 kB / 329.3 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.381e-05/0.4583, allocations: 33.66 kB / 329.3 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.501e-05/0.4584, allocations: 34.56 kB / 329.4 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-05/0.4585, allocations: 67.7 kB / 329.4 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002491/0.4588, allocations: 167.9 kB / 329.6 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005786/0.4594, allocations: 376 kB / 330 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.4594, allocations: 0 / 330 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4594, allocations: 0 / 330 MB, free: 14.26 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.4594, allocations: 4 kB / 330 MB, free: 14.26 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.001761/0.4612, allocations: 0.6544 MB / 330.6 MB, free: 13.67 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.001e-05/0.4613, allocations: 8.906 kB / 330.6 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.4615, allocations: 37.38 kB / 330.7 MB, free: 13.65 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006515/0.4621, allocations: 272.3 kB / 330.9 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.016e-05/0.4622, allocations: 18.41 kB / 331 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.615e-05/0.4623, allocations: 24.91 kB / 331 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.4633, allocations: 301.9 kB / 331.3 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.4634, allocations: 0 / 331.3 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.4634, allocations: 10.34 kB / 331.3 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.4634, allocations: 6.094 kB / 331.3 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008389/0.4643, allocations: 256.4 kB / 331.5 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002278/0.4666, allocations: 1.106 MB / 332.6 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009158/0.4675, allocations: 209.3 kB / 332.8 MB, free: 11.94 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003509/0.4679, allocations: 94.17 kB / 332.9 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.329e-05/0.4679, allocations: 5.078 kB / 332.9 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007514/0.4687, allocations: 167 kB / 333.1 MB, free: 11.74 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 3.276e-06/0.4687, allocations: 0 / 333.1 MB, free: 11.74 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.00238/0.4711, allocations: 0.5105 MB / 333.6 MB, free: 11.2 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000294/0.4714, allocations: 106.8 kB / 333.7 MB, free: 11.07 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004675/0.4719, allocations: 282.7 kB / 334 MB, free: 10.79 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.4719, allocations: 29.7 kB / 334 MB, free: 10.75 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000257/0.4722, allocations: 199.5 kB / 334.2 MB, free: 10.55 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.862e-05/0.4722, allocations: 39.45 kB / 334.3 MB, free: 10.52 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.4724, allocations: 49.94 kB / 334.3 MB, free: 10.46 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0003173/0.4727, allocations: 334.8 kB / 334.6 MB, free: 10.12 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003306/0.473, allocations: 96.14 kB / 334.7 MB, free: 10.03 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004208/0.4735, allocations: 198.8 kB / 334.9 MB, free: 9.789 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000751/0.4742, allocations: 301.4 kB / 335.2 MB, free: 9.445 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.4742, allocations: 7.938 kB / 335.2 MB, free: 9.438 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001207/0.4755, allocations: 423.7 kB / 335.6 MB, free: 9.008 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.714e-05/0.4755, allocations: 37.62 kB / 335.7 MB, free: 8.965 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.4756, allocations: 7.984 kB / 335.7 MB, free: 8.957 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004252/0.476, allocations: 76.78 kB / 335.8 MB, free: 8.879 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.4762, allocations: 51.95 kB / 335.8 MB, free: 8.828 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003118/0.4794, allocations: 1.715 MB / 337.5 MB, free: 6.973 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/0.4798, allocations: 55.64 kB / 337.6 MB, free: 6.918 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.4799, allocations: 27.98 kB / 337.6 MB, free: 6.891 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.000322/0.4802, allocations: 141.7 kB / 337.7 MB, free: 6.742 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.542e-05/0.4803, allocations: 23.72 kB / 337.8 MB, free: 6.719 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.885e-05/0.4804, allocations: 25.7 kB / 337.8 MB, free: 6.695 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.4804, allocations: 0 / 337.8 MB, free: 6.695 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.4804, allocations: 0 / 337.8 MB, free: 6.695 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.892e-06/0.4804, allocations: 4 kB / 337.8 MB, free: 6.691 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004276/0.4808, allocations: 301.4 kB / 338.1 MB, free: 6.348 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.4808, allocations: 4 kB / 338.1 MB, free: 6.344 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.481, allocations: 19.97 kB / 338.1 MB, free: 6.324 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002605/0.4812, allocations: 64.81 kB / 338.2 MB, free: 6.258 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.4813, allocations: 0 / 338.2 MB, free: 6.258 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002629/0.4839, allocations: 1.707 MB / 339.9 MB, free: 4.414 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4839, allocations: 4.031 kB / 339.9 MB, free: 4.41 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.485, allocations: 309.4 kB / 340.2 MB, free: 4.086 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.4851, allocations: 120.7 kB / 340.3 MB, free: 3.949 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.4852, allocations: 4 kB / 340.3 MB, free: 3.945 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.4854, allocations: 27.97 kB / 340.3 MB, free: 3.918 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.4855, allocations: 19.97 kB / 340.4 MB, free: 3.898 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.4856, allocations: 4 kB / 340.4 MB, free: 3.895 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002568/0.4858, allocations: 205.9 kB / 340.6 MB, free: 3.691 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4858, allocations: 4 kB / 340.6 MB, free: 3.688 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004613/0.4863, allocations: 75.84 kB / 340.6 MB, free: 3.613 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.0002583/0.4866, allocations: 115.1 kB / 340.8 MB, free: 3.488 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001174/0.4878, allocations: 406.5 kB / 341.2 MB, free: 3.066 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4878, allocations: 0 / 341.2 MB, free: 3.066 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004673/0.4882, allocations: 231.1 kB / 341.4 MB, free: 2.828 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004055/0.4887, allocations: 53.14 kB / 341.4 MB, free: 2.777 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.4899, allocations: 0.5442 MB / 342 MB, free: 2.207 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000562/0.4905, allocations: 0.7519 MB / 342.7 MB, free: 1.43 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001164/0.4906, allocations: 26.28 kB / 342.8 MB, free: 1.406 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.145e-05/0.4907, allocations: 19.44 kB / 342.8 MB, free: 1.387 MB / 270.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4907, allocations: 0 / 342.8 MB, free: 1.387 MB / 270.1 MB Notification: Performance of Templates: time 0.009426/0.5001, allocations: 4.032 MB / 346.8 MB, free: 13.36 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)