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.00155/0.00155, allocations: 110.2 kB / 17.06 MB, free: 5.828 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.001983/0.001983, allocations: 198.9 kB / 18 MB, free: 4.949 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.649/1.649, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.00146/0.00146, allocations: 47.94 kB / 327.9 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1191, allocations: 46.61 MB / 374.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.00479/0.1239, allocations: 2.699 MB / 377.2 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.1253, allocations: 0.7251 MB / 377.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.1255, allocations: 4 kB / 377.9 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.1257, allocations: 35.58 kB / 378 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001894/0.1259, allocations: 95.25 kB / 378.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.1262, allocations: 99.8 kB / 378.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004006/0.1266, allocations: 350.5 kB / 378.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.1268, allocations: 92.69 kB / 378.6 MB, free: 436 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001754/0.127, allocations: 131.4 kB / 378.7 MB, free: 304 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.1272, allocations: 151.3 kB / 378.9 MB, free: 152 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.065e-05/0.1272, allocations: 32 kB / 378.9 MB, free: 120 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.69e-05/0.1273, allocations: 28 kB / 378.9 MB, free: 92 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.763e-05/0.1273, allocations: 63.81 kB / 379 MB, free: 28 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2864/0.4138, allocations: 142.8 kB / 379.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000552/0.4144, allocations: 326 kB / 379.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.4144, allocations: 0.9844 kB / 379.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4144, allocations: 0 / 379.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.4145, allocations: 1.125 kB / 379.5 MB, free: 10.08 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.001331/0.4158, allocations: 0.6346 MB / 380.1 MB, free: 9.617 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/0.4159, allocations: 9.625 kB / 380.1 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.531e-05/0.416, allocations: 32.5 kB / 380.1 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004886/0.4165, allocations: 273.8 kB / 380.4 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.4165, allocations: 15.44 kB / 380.4 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.377e-05/0.4165, allocations: 20.53 kB / 380.4 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007093/0.4173, allocations: 246.5 kB / 380.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.4173, allocations: 3.938 kB / 380.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.4173, allocations: 10.05 kB / 380.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.4173, allocations: 8.062 kB / 380.7 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000846/0.4182, allocations: 259.4 kB / 381 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.4201, allocations: 0.8525 MB / 381.8 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009091/0.421, allocations: 225 kB / 382 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004017/0.4214, allocations: 101.9 kB / 382.1 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.4214, allocations: 2.469 kB / 382.1 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005737/0.422, allocations: 183.2 kB / 382.3 MB, free: 8.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.825e-06/0.422, allocations: 0 / 382.3 MB, free: 8.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.002234/0.4243, allocations: 0.59 MB / 382.9 MB, free: 8.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.4243, allocations: 106.4 kB / 383 MB, free: 8.535 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.4246, allocations: 254.2 kB / 383.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.4247, allocations: 35.7 kB / 383.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.4248, allocations: 172.4 kB / 383.4 MB, free: 8.281 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.375e-05/0.4248, allocations: 43.48 kB / 383.5 MB, free: 8.254 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-05/0.4249, allocations: 47.69 kB / 383.5 MB, free: 8.234 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.314e-05/0.425, allocations: 335.6 kB / 383.9 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003379/0.4253, allocations: 98.55 kB / 384 MB, free: 7.906 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003569/0.4257, allocations: 160.7 kB / 384.1 MB, free: 7.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006064/0.4263, allocations: 251.5 kB / 384.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.4263, allocations: 1.625 kB / 384.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001105/0.4274, allocations: 412.6 kB / 384.8 MB, free: 7.648 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.4275, allocations: 32.84 kB / 384.8 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4275, allocations: 5.375 kB / 384.8 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005482/0.4281, allocations: 112.8 kB / 384.9 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.4283, allocations: 37.73 kB / 385 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.4303, allocations: 1.89 MB / 386.8 MB, free: 6.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.4306, allocations: 48.78 kB / 386.9 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.4307, allocations: 6.406 kB / 386.9 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003347/0.431, allocations: 178.8 kB / 387.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002989/0.4313, allocations: 150.2 kB / 387.2 MB, free: 5.902 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005254/0.4319, allocations: 233.8 kB / 387.4 MB, free: 5.762 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.174e-06/0.4319, allocations: 5.188 kB / 387.5 MB, free: 5.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0007811/0.4327, allocations: 333.7 kB / 387.8 MB, free: 5.605 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.4327, allocations: 33.98 kB / 387.8 MB, free: 5.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.4327, allocations: 1.5 kB / 387.8 MB, free: 5.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000127/0.4328, allocations: 41.58 kB / 387.9 MB, free: 5.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.433, allocations: 42.31 kB / 387.9 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.4342, allocations: 1.717 MB / 389.6 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000301/0.4345, allocations: 44.33 kB / 389.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/0.4345, allocations: 10.98 kB / 389.7 MB, free: 3.902 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.0001115/0.4346, allocations: 199.1 kB / 389.9 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.032e-05/0.4347, allocations: 19.7 kB / 389.9 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.657e-05/0.4348, allocations: 25.53 kB / 389.9 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.4348, allocations: 10.09 kB / 389.9 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.4348, allocations: 0 / 389.9 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.4348, allocations: 2.656 kB / 389.9 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003737/0.4352, allocations: 299 kB / 390.2 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.4352, allocations: 4.594 kB / 390.2 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.4353, allocations: 24.69 kB / 390.2 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002403/0.4356, allocations: 62 kB / 390.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.4356, allocations: 8.656 kB / 390.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001737/0.4374, allocations: 1.719 MB / 392 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.4374, allocations: 2.062 kB / 392 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009718/0.4384, allocations: 312.2 kB / 392.3 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.911e-05/0.4384, allocations: 102 kB / 392.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.4385, allocations: 1.688 kB / 392.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.4387, allocations: 30.56 kB / 392.5 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.878e-05/0.4388, allocations: 19.86 kB / 392.5 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.4388, allocations: 15.83 kB / 392.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001961/0.4391, allocations: 185.2 kB / 392.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4391, allocations: 0 / 392.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005731/0.4396, allocations: 124.5 kB / 392.8 MB, free: 1.496 MB / 318.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.0001294/0.4398, allocations: 102.6 kB / 392.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.4412, allocations: 0.6859 MB / 393.6 MB, free: 0.957 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4412, allocations: 0.6875 kB / 393.6 MB, free: 0.957 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004738/0.4417, allocations: 238.6 kB / 393.8 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000347/0.442, allocations: 50.73 kB / 393.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.443, allocations: 450.2 kB / 394.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.4434, allocations: 0.7482 MB / 395.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.4435, allocations: 28.83 kB / 395.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.188e-05/0.4436, allocations: 22.41 kB / 395.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4436, allocations: 3.938 kB / 395.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of Templates: time 0.01367/0.4573, allocations: 4.454 MB / 399.6 MB, free: 15.08 MB / 334.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)