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.009703/0.009702, allocations: 106.8 kB / 15.74 MB, free: 6.445 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.0016/0.001601, allocations: 191.5 kB / 16.67 MB, free: 6.355 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.945/1.945, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001181/0.001181, allocations: 44.06 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1172, allocations: 46.63 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.004539/0.1218, allocations: 2.688 MB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1232, allocations: 0.7213 MB / 376.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.1233, allocations: 4 kB / 376.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.1235, allocations: 43.56 kB / 376.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.1237, allocations: 91.25 kB / 376.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.124, allocations: 95.83 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004048/0.1244, allocations: 358.4 kB / 377.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/0.1247, allocations: 88.62 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.1249, allocations: 139.4 kB / 377.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.125, allocations: 151.4 kB / 377.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.834e-05/0.1251, allocations: 35.88 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.504e-05/0.1251, allocations: 32 kB / 377.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.065e-05/0.1252, allocations: 59.83 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001598/0.1254, allocations: 147.2 kB / 377.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.1258, allocations: 322.9 kB / 378.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1258, allocations: 0 / 378.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1258, allocations: 0 / 378.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1258, allocations: 0 / 378.1 MB, free: 12.31 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.001356/0.1272, allocations: 0.6341 MB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.1272, allocations: 8.031 kB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.667e-05/0.1273, allocations: 32.56 kB / 378.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.1278, allocations: 283.5 kB / 379.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.1278, allocations: 16.81 kB / 379.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.1279, allocations: 20.38 kB / 379.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000611/0.1285, allocations: 251.5 kB / 379.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.1285, allocations: 0 / 379.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.1285, allocations: 8 kB / 379.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.1286, allocations: 8 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007385/0.1293, allocations: 249.6 kB / 379.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.1308, allocations: 0.8619 MB / 380.5 MB, free: 9.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007219/0.1316, allocations: 222.6 kB / 380.7 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002899/0.1319, allocations: 100.8 kB / 380.8 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.1319, allocations: 4 kB / 380.8 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00045/0.1324, allocations: 177.7 kB / 381 MB, free: 9.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.1324, allocations: 4 kB / 381 MB, free: 9.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001998/0.1344, allocations: 0.5848 MB / 381.6 MB, free: 8.645 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.303e-05/0.1345, allocations: 106.8 kB / 381.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002806/0.1348, allocations: 260.9 kB / 381.9 MB, free: 8.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.1348, allocations: 37.7 kB / 382 MB, free: 8.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.1349, allocations: 167.9 kB / 382.1 MB, free: 8.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.572e-05/0.135, allocations: 47.39 kB / 382.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.357e-05/0.1351, allocations: 45.61 kB / 382.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1352, allocations: 334.8 kB / 382.6 MB, free: 7.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003107/0.1355, allocations: 92.8 kB / 382.7 MB, free: 7.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003423/0.1359, allocations: 163.4 kB / 382.8 MB, free: 7.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005928/0.1365, allocations: 251.5 kB / 383.1 MB, free: 7.047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1365, allocations: 0 / 383.1 MB, free: 7.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001047/0.1376, allocations: 411.6 kB / 383.5 MB, free: 6.629 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.523e-05/0.1376, allocations: 33.7 kB / 383.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1376, allocations: 0 / 383.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004811/0.1381, allocations: 116.8 kB / 383.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.1383, allocations: 43.84 kB / 383.7 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00217/0.1405, allocations: 1.888 MB / 385.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002961/0.1408, allocations: 43.75 kB / 385.6 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.1408, allocations: 16.05 kB / 385.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003438/0.1412, allocations: 180 kB / 385.8 MB, free: 4.168 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000321/0.1415, allocations: 155.5 kB / 385.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005044/0.142, allocations: 223.6 kB / 386.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.362e-06/0.142, allocations: 0 / 386.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0007399/0.1428, allocations: 339.8 kB / 386.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.384e-05/0.1428, allocations: 37.69 kB / 386.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-06/0.1428, allocations: 0 / 386.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001235/0.143, allocations: 40.84 kB / 386.6 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.1432, allocations: 39.91 kB / 386.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001488/0.1446, allocations: 1.717 MB / 388.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003036/0.145, allocations: 43.88 kB / 388.4 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.145, allocations: 15.98 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.0001799/0.1452, allocations: 200.1 kB / 388.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.798e-05/0.1452, allocations: 15.81 kB / 388.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.416e-05/0.1453, allocations: 29.83 kB / 388.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1453, allocations: 3.984 kB / 388.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1453, allocations: 4 kB / 388.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1453, allocations: 0 / 388.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/0.1457, allocations: 305.3 kB / 388.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1457, allocations: 0 / 388.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.1458, allocations: 23.97 kB / 388.9 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002343/0.1461, allocations: 56.81 kB / 389 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.1461, allocations: 11.98 kB / 389 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00194/0.1481, allocations: 1.711 MB / 390.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.1481, allocations: 4.062 kB / 390.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008395/0.1489, allocations: 317.5 kB / 391 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.403e-05/0.149, allocations: 100.8 kB / 391.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.1491, allocations: 4 kB / 391.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.1493, allocations: 31.95 kB / 391.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.1494, allocations: 23.86 kB / 391.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.1495, allocations: 11.98 kB / 391.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002178/0.1497, allocations: 188.5 kB / 391.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1497, allocations: 0 / 391.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005962/0.1503, allocations: 123.7 kB / 391.5 MB, free: 13.97 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.000183/0.1505, allocations: 103.2 kB / 391.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001481/0.152, allocations: 0.6872 MB / 392.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.152, allocations: 0 / 392.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004564/0.1525, allocations: 243.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.0003718/0.1528, allocations: 40.39 kB / 392.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.1539, allocations: 444.2 kB / 393 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.1542, allocations: 0.7522 MB / 393.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001135/0.1543, allocations: 26.28 kB / 393.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.1544, allocations: 23.44 kB / 393.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1544, allocations: 0 / 393.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of Templates: time 0.008499/0.1629, allocations: 4.314 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)