Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001206/0.001206, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.001392/0.001393, allocations: 195 kB / 18 MB, free: 5.105 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.654/1.654, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001385/0.001385, allocations: 55.94 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1211, allocations: 46.61 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.005179/0.1264, allocations: 2.745 MB / 377.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.1279, allocations: 0.6861 MB / 377.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003094/0.1283, allocations: 4 kB / 377.9 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002404/0.1285, allocations: 47.5 kB / 378 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003691/0.1289, allocations: 99.19 kB / 378.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004346/0.1294, allocations: 83.89 kB / 378.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007212/0.1301, allocations: 378.3 kB / 378.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003663/0.1305, allocations: 126.9 kB / 378.6 MB, free: 400 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003306/0.1308, allocations: 143.5 kB / 378.8 MB, free: 256 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002922/0.1311, allocations: 163.2 kB / 378.9 MB, free: 92 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.9e-05/0.1312, allocations: 35.94 kB / 379 MB, free: 56 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.832e-05/0.1313, allocations: 40 kB / 379 MB, free: 16 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2847/0.416, allocations: 71.47 kB / 379.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003268/0.4164, allocations: 163.9 kB / 379.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000588/0.417, allocations: 378.1 kB / 379.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.417, allocations: 0 / 379.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.417, allocations: 3.656 kB / 379.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.417, allocations: 1.375 kB / 379.6 MB, free: 10.14 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001225/0.4182, allocations: 0.6444 MB / 380.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.4183, allocations: 9.516 kB / 380.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.48e-05/0.4184, allocations: 33.81 kB / 380.3 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004513/0.4188, allocations: 274.7 kB / 380.6 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/0.4189, allocations: 17.03 kB / 380.6 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.4189, allocations: 24.73 kB / 380.6 MB, free: 9.426 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007238/0.4196, allocations: 296.4 kB / 380.9 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.4197, allocations: 6.062 kB / 380.9 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.4197, allocations: 13.45 kB / 380.9 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.4197, allocations: 7.906 kB / 380.9 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008372/0.4206, allocations: 250.1 kB / 381.2 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.4226, allocations: 1.086 MB / 382.3 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009841/0.4236, allocations: 215.1 kB / 382.5 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000447/0.4241, allocations: 88.58 kB / 382.6 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.212e-05/0.4241, allocations: 9.25 kB / 382.6 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006227/0.4247, allocations: 160.8 kB / 382.7 MB, free: 8.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 3.677e-06/0.4248, allocations: 2.422 kB / 382.7 MB, free: 8.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.002613/0.4274, allocations: 0.5133 MB / 383.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.877e-05/0.4275, allocations: 108.8 kB / 383.4 MB, free: 8.371 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005158/0.428, allocations: 280.7 kB / 383.6 MB, free: 8.262 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/0.4281, allocations: 31.58 kB / 383.7 MB, free: 8.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/0.4283, allocations: 200.8 kB / 383.9 MB, free: 8.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.97e-05/0.4283, allocations: 39.23 kB / 383.9 MB, free: 8.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.4285, allocations: 55.06 kB / 383.9 MB, free: 8.051 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.4287, allocations: 333.9 kB / 384.3 MB, free: 7.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004262/0.4291, allocations: 95.12 kB / 384.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000544/0.4297, allocations: 203.2 kB / 384.6 MB, free: 7.605 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008713/0.4306, allocations: 302.3 kB / 384.9 MB, free: 7.453 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.4306, allocations: 1.25 kB / 384.9 MB, free: 7.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001403/0.432, allocations: 427.8 kB / 385.3 MB, free: 7.359 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.096e-05/0.4321, allocations: 39.08 kB / 385.3 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.4321, allocations: 2 kB / 385.3 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004256/0.4325, allocations: 78.02 kB / 385.4 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.4328, allocations: 48.83 kB / 385.4 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/0.4353, allocations: 1.72 MB / 387.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004494/0.4357, allocations: 54.23 kB / 387.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/0.4358, allocations: 9.031 kB / 387.2 MB, free: 5.832 MB / 318.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.0002153/0.436, allocations: 152.9 kB / 387.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.941e-05/0.4361, allocations: 29.41 kB / 387.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.612e-05/0.4362, allocations: 22.42 kB / 387.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.4362, allocations: 4.219 kB / 387.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.4362, allocations: 3.938 kB / 387.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.4362, allocations: 0.6562 kB / 387.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004432/0.4366, allocations: 304.5 kB / 387.7 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4367, allocations: 4 kB / 387.7 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.4368, allocations: 19.27 kB / 387.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000367/0.4372, allocations: 66.89 kB / 387.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.4372, allocations: 1.859 kB / 387.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002189/0.4394, allocations: 1.704 MB / 389.5 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4394, allocations: 4.594 kB / 389.5 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.4406, allocations: 320.7 kB / 389.8 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.4408, allocations: 115.7 kB / 390 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.708e-05/0.4408, allocations: 2.578 kB / 390 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002696/0.4411, allocations: 33.59 kB / 390 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.4412, allocations: 24.44 kB / 390 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.4413, allocations: 3.312 kB / 390 MB, free: 3.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002901/0.4416, allocations: 203.8 kB / 390.2 MB, free: 3.484 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4416, allocations: 0 / 390.2 MB, free: 3.484 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004764/0.4421, allocations: 81.25 kB / 390.3 MB, free: 3.469 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 (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.0001905/0.4422, allocations: 106 kB / 390.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.4436, allocations: 410.6 kB / 390.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4436, allocations: 0 / 390.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005249/0.4441, allocations: 228 kB / 391 MB, free: 2.992 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.4445, allocations: 49.64 kB / 391.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.4459, allocations: 459.1 kB / 391.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/0.4464, allocations: 0.7543 MB / 392.3 MB, free: 1.996 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000137/0.4465, allocations: 29.81 kB / 392.3 MB, free: 1.992 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.152e-05/0.4466, allocations: 22.66 kB / 392.3 MB, free: 1.98 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4466, allocations: 1.219 kB / 392.3 MB, free: 1.98 MB / 318.1 MB Notification: Performance of Templates: time 0.01229/0.4589, allocations: 4.343 MB / 396.7 MB, free: 1.457 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1)