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.007053/0.007052, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001248/0.001248, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.99/1.99, allocations: 205.1 MB / 222.6 MB, free: 4.5 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.001252/0.001252, allocations: 54.52 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1298, allocations: 46.63 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.005106/0.1349, allocations: 2.692 MB / 375.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.1369, allocations: 0.7251 MB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002192/0.1371, allocations: 7.938 kB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002322/0.1374, allocations: 39.58 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002685/0.1377, allocations: 87.25 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004043/0.1381, allocations: 91.83 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005103/0.1386, allocations: 370.4 kB / 377.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002446/0.1389, allocations: 76.66 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002239/0.1391, allocations: 139.5 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002177/0.1393, allocations: 147.4 kB / 377.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.999e-05/0.1394, allocations: 28 kB / 377.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.415e-05/0.1394, allocations: 35.94 kB / 377.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.07e-05/0.1395, allocations: 59.7 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002491/0.1398, allocations: 147.3 kB / 377.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004679/0.1403, allocations: 326.9 kB / 378.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.1403, allocations: 3.938 kB / 378.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.1403, allocations: 0 / 378.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.1403, allocations: 0 / 378.2 MB, free: 12.3 MB / 318.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.001582/0.1419, allocations: 0.6341 MB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.142, allocations: 8.031 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.726e-05/0.1421, allocations: 32.56 kB / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005115/0.1426, allocations: 275.5 kB / 379.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.1426, allocations: 16.81 kB / 379.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.37e-05/0.1427, allocations: 20.38 kB / 379.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006609/0.1434, allocations: 251.5 kB / 379.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.1434, allocations: 0 / 379.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.1434, allocations: 8 kB / 379.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.1434, allocations: 7.984 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008041/0.1442, allocations: 261.4 kB / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001846/0.1461, allocations: 0.858 MB / 380.5 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008072/0.1469, allocations: 222.6 kB / 380.7 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003038/0.1472, allocations: 92.8 kB / 380.8 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-05/0.1473, allocations: 8 kB / 380.8 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005547/0.1478, allocations: 173.7 kB / 381 MB, free: 9.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.304e-06/0.1479, allocations: 0 / 381 MB, free: 9.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.002107/0.15, allocations: 0.5848 MB / 381.6 MB, free: 8.648 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.978e-05/0.1501, allocations: 114.8 kB / 381.7 MB, free: 8.512 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/0.1504, allocations: 256.9 kB / 381.9 MB, free: 8.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.1505, allocations: 33.7 kB / 382 MB, free: 8.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.1506, allocations: 167.9 kB / 382.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.755e-05/0.1507, allocations: 47.39 kB / 382.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.099e-05/0.1508, allocations: 49.61 kB / 382.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.151, allocations: 334.8 kB / 382.6 MB, free: 7.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003867/0.1514, allocations: 96.78 kB / 382.7 MB, free: 7.504 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003911/0.1518, allocations: 155.5 kB / 382.8 MB, free: 7.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006311/0.1524, allocations: 251.5 kB / 383 MB, free: 7.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1524, allocations: 0 / 383 MB, free: 7.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001076/0.1535, allocations: 415.6 kB / 383.5 MB, free: 6.629 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.862e-05/0.1536, allocations: 37.69 kB / 383.5 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.1536, allocations: 0 / 383.5 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000541/0.1541, allocations: 112.7 kB / 383.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002058/0.1544, allocations: 39.95 kB / 383.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002456/0.1568, allocations: 1.888 MB / 385.5 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003512/0.1572, allocations: 47.73 kB / 385.6 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.611e-05/0.1572, allocations: 8 kB / 385.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004296/0.1577, allocations: 184.1 kB / 385.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003103/0.158, allocations: 151.5 kB / 385.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000613/0.1586, allocations: 223.6 kB / 386.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.306e-06/0.1586, allocations: 4 kB / 386.1 MB, free: 3.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0007806/0.1594, allocations: 339.6 kB / 386.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.1595, allocations: 37.89 kB / 386.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.145e-06/0.1595, allocations: 4 kB / 386.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001274/0.1596, allocations: 44.77 kB / 386.5 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.1598, allocations: 35.97 kB / 386.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.1614, allocations: 1.721 MB / 388.3 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/0.1617, allocations: 43.86 kB / 388.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.1618, allocations: 12 kB / 388.4 MB, free: 1.355 MB / 318.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.0002175/0.162, allocations: 196.1 kB / 388.6 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.162e-05/0.162, allocations: 19.81 kB / 388.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.601e-05/0.1621, allocations: 29.83 kB / 388.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1621, allocations: 0 / 388.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.1621, allocations: 0 / 388.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1621, allocations: 0 / 388.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003219/0.1624, allocations: 305.3 kB / 388.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1625, allocations: 4 kB / 388.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.1626, allocations: 23.97 kB / 388.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002295/0.1628, allocations: 64.73 kB / 389 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.1629, allocations: 4 kB / 389 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002349/0.1652, allocations: 1.715 MB / 390.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.1652, allocations: 3.938 kB / 390.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009814/0.1662, allocations: 317.6 kB / 391 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.334e-05/0.1663, allocations: 96.83 kB / 391.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.1664, allocations: 4 kB / 391.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.1666, allocations: 35.95 kB / 391.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.1667, allocations: 27.89 kB / 391.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.1668, allocations: 8 kB / 391.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002468/0.167, allocations: 180.5 kB / 391.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.167, allocations: 0 / 391.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006458/0.1677, allocations: 127.7 kB / 391.5 MB, free: 13.98 MB / 334.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.0002157/0.1679, allocations: 103.2 kB / 391.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.1697, allocations: 0.6917 MB / 392.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.1697, allocations: 0 / 392.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004845/0.1702, allocations: 235.2 kB / 392.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004052/0.1706, allocations: 52.45 kB / 392.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.1718, allocations: 455.6 kB / 393 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.1723, allocations: 0.7444 MB / 393.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.1724, allocations: 26.3 kB / 393.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.67e-05/0.1725, allocations: 19.44 kB / 393.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of SimCode: time 6.22e-07/0.1725, allocations: 0 / 393.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of Templates: time 0.01056/0.1831, allocations: 4.31 MB / 398.1 MB, free: 7.227 MB / 334.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)