Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001255/0.001255, allocations: 106.9 kB / 16.92 MB, free: 5.777 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.00125/0.00125, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.707/1.707, allocations: 205.1 MB / 223.7 MB, free: 12.32 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.001322/0.001322, allocations: 59.92 kB / 280 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1388, allocations: 46.63 MB / 326.6 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.005694/0.1445, allocations: 2.703 MB / 329.3 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.1463, allocations: 0.7137 MB / 330.1 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002086/0.1465, allocations: 4 kB / 330.1 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001918/0.1468, allocations: 43.58 kB / 330.1 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.147, allocations: 91.25 kB / 330.2 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003756/0.1474, allocations: 95.8 kB / 330.3 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004764/0.1479, allocations: 350.6 kB / 330.6 MB, free: 452 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.1482, allocations: 76.72 kB / 330.7 MB, free: 380 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.1484, allocations: 131.4 kB / 330.8 MB, free: 248 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/0.1486, allocations: 155.4 kB / 331 MB, free: 92 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.556e-05/0.1487, allocations: 28 kB / 331 MB, free: 64 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.754e-05/0.1488, allocations: 28 kB / 331 MB, free: 36 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.1489, allocations: 71.69 kB / 331.1 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002174/0.1491, allocations: 147.2 kB / 331.2 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000434/0.1495, allocations: 319.2 kB / 331.6 MB, free: 15.51 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1496, allocations: 0 / 331.6 MB, free: 15.51 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.1496, allocations: 0 / 331.6 MB, free: 15.51 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1496, allocations: 3.938 kB / 331.6 MB, free: 15.5 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001694/0.1513, allocations: 0.6379 MB / 332.2 MB, free: 14.81 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.1514, allocations: 8.031 kB / 332.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.1515, allocations: 32.66 kB / 332.2 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/0.1519, allocations: 279.2 kB / 332.5 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/0.1519, allocations: 20.73 kB / 332.5 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.152, allocations: 24.38 kB / 332.6 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006418/0.1526, allocations: 243.5 kB / 332.8 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.1526, allocations: 0 / 332.8 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.1527, allocations: 12 kB / 332.8 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.1527, allocations: 11.98 kB / 332.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008834/0.1536, allocations: 249.6 kB / 333.1 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.1556, allocations: 0.8658 MB / 333.9 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008557/0.1564, allocations: 226.5 kB / 334.2 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.1568, allocations: 100.8 kB / 334.2 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.929e-05/0.1568, allocations: 4 kB / 334.3 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006494/0.1575, allocations: 173.8 kB / 334.4 MB, free: 12.44 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.1575, allocations: 0 / 334.4 MB, free: 12.44 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.002306/0.1598, allocations: 0.5887 MB / 335 MB, free: 11.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.1599, allocations: 102.8 kB / 335.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003626/0.1603, allocations: 260.8 kB / 335.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.1604, allocations: 33.7 kB / 335.4 MB, free: 11.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.1606, allocations: 171.9 kB / 335.6 MB, free: 11.22 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.788e-05/0.1606, allocations: 51.3 kB / 335.6 MB, free: 11.17 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.1607, allocations: 49.64 kB / 335.7 MB, free: 11.11 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002353/0.161, allocations: 330.8 kB / 336 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.1614, allocations: 96.78 kB / 336.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004155/0.1618, allocations: 167.5 kB / 336.2 MB, free: 10.49 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006864/0.1625, allocations: 250.8 kB / 336.5 MB, free: 10.22 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.1625, allocations: 4 kB / 336.5 MB, free: 10.22 MB / 286.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001143/0.1636, allocations: 411.5 kB / 336.9 MB, free: 9.801 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.695e-05/0.1637, allocations: 33.7 kB / 336.9 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.1637, allocations: 0 / 336.9 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000633/0.1644, allocations: 112.8 kB / 337 MB, free: 9.648 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/0.1646, allocations: 39.91 kB / 337.1 MB, free: 9.609 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002779/0.1674, allocations: 1.888 MB / 339 MB, free: 7.578 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000366/0.1678, allocations: 43.88 kB / 339 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/0.1678, allocations: 8 kB / 339 MB, free: 7.527 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004447/0.1683, allocations: 176.1 kB / 339.2 MB, free: 7.352 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00037/0.1686, allocations: 147.7 kB / 339.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000552/0.1692, allocations: 230.6 kB / 339.6 MB, free: 6.93 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.363e-06/0.1692, allocations: 0 / 339.6 MB, free: 6.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0008605/0.1701, allocations: 335.6 kB / 339.9 MB, free: 6.586 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.556e-05/0.1702, allocations: 37.7 kB / 339.9 MB, free: 6.543 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.1702, allocations: 0 / 339.9 MB, free: 6.543 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001467/0.1703, allocations: 44.83 kB / 340 MB, free: 6.496 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.1705, allocations: 35.91 kB / 340 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.1724, allocations: 1.732 MB / 341.7 MB, free: 4.59 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.1727, allocations: 43.81 kB / 341.8 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/0.1727, allocations: 4 kB / 341.8 MB, free: 4.543 MB / 286.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.0002411/0.173, allocations: 192.2 kB / 342 MB, free: 4.348 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.416e-05/0.173, allocations: 23.77 kB / 342 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.089e-05/0.1731, allocations: 33.78 kB / 342 MB, free: 4.293 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1731, allocations: 0 / 342 MB, free: 4.293 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1731, allocations: 0 / 342 MB, free: 4.293 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.1731, allocations: 3.984 kB / 342 MB, free: 4.289 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003897/0.1735, allocations: 297.4 kB / 342.3 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1735, allocations: 0 / 342.3 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.1737, allocations: 23.97 kB / 342.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002535/0.174, allocations: 68.75 kB / 342.4 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.174, allocations: 4 kB / 342.4 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002275/0.1763, allocations: 1.715 MB / 344.1 MB, free: 2 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1763, allocations: 3.984 kB / 344.1 MB, free: 1.996 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008959/0.1772, allocations: 326 kB / 344.5 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.192e-05/0.1773, allocations: 104.8 kB / 344.6 MB, free: 1.535 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.993e-05/0.1773, allocations: 8 kB / 344.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.1776, allocations: 27.97 kB / 344.6 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.1777, allocations: 23.91 kB / 344.6 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.1777, allocations: 8 kB / 344.6 MB, free: 1.469 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002323/0.1779, allocations: 184.5 kB / 344.8 MB, free: 1.293 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.172e-06/0.1779, allocations: 0 / 344.8 MB, free: 1.293 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006545/0.1786, allocations: 123.7 kB / 344.9 MB, free: 1.172 MB / 286.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.0002775/0.1789, allocations: 111.1 kB / 345 MB, free: 1.051 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001693/0.1806, allocations: 0.6914 MB / 345.7 MB, free: 316 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.1806, allocations: 0 / 345.7 MB, free: 316 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004605/0.1811, allocations: 230.6 kB / 345.9 MB, free: 72 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004549/0.1815, allocations: 52.95 kB / 346 MB, free: 20 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.1828, allocations: 451.6 kB / 346.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005168/0.1834, allocations: 0.7483 MB / 347.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.1835, allocations: 26.28 kB / 347.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.384e-05/0.1836, allocations: 19.44 kB / 347.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of SimCode: time 1.213e-06/0.1836, allocations: 0 / 347.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of Templates: time 0.00955/0.1931, allocations: 4.262 MB / 351.5 MB, free: 10.46 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1)