Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002634/0.002634, allocations: 195.2 kB / 16.14 MB, free: 6.707 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.737/1.737, allocations: 205.1 MB / 222 MB, free: 4.77 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.001267/0.001268, allocations: 51.91 kB / 278 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3611, allocations: 46.64 MB / 324.7 MB, free: 1.91 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.008253/0.3694, allocations: 5.697 MB / 330.4 MB, free: 13.37 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004013/0.3735, allocations: 1.449 MB / 331.8 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.3748, allocations: 17.66 kB / 331.8 MB, free: 12.15 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007002/0.3755, allocations: 114.7 kB / 332 MB, free: 12.05 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001298/0.3769, allocations: 240.6 kB / 332.2 MB, free: 11.85 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.3779, allocations: 304 kB / 332.5 MB, free: 11.59 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001863/0.3798, allocations: 1.17 MB / 333.7 MB, free: 10.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00064/0.3805, allocations: 358.5 kB / 334 MB, free: 10.67 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006982/0.3812, allocations: 408.3 kB / 334.4 MB, free: 10.38 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005328/0.3817, allocations: 0.49 MB / 334.9 MB, free: 9.887 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.3818, allocations: 68 kB / 335 MB, free: 9.82 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002729/0.3821, allocations: 99.97 kB / 335.1 MB, free: 9.723 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001799/0.3823, allocations: 191.2 kB / 335.2 MB, free: 9.535 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004514/0.3828, allocations: 0.4897 MB / 335.7 MB, free: 9.043 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001133/0.3839, allocations: 1.341 MB / 337.1 MB, free: 7.699 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3839, allocations: 0 / 337.1 MB, free: 7.699 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.3839, allocations: 0 / 337.1 MB, free: 7.699 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.384, allocations: 0 / 337.1 MB, free: 7.699 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002535/0.3865, allocations: 1.294 MB / 338.4 MB, free: 6.355 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.3865, allocations: 8.031 kB / 338.4 MB, free: 6.348 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001805/0.3867, allocations: 103.7 kB / 338.5 MB, free: 6.246 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006322/0.3874, allocations: 0.5051 MB / 339 MB, free: 5.699 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.408e-05/0.3874, allocations: 58.38 kB / 339 MB, free: 5.641 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.3876, allocations: 80.38 kB / 339.1 MB, free: 5.562 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.3892, allocations: 0.8808 MB / 340 MB, free: 4.668 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.3892, allocations: 7.938 kB / 340 MB, free: 4.66 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.669e-05/0.3893, allocations: 32 kB / 340 MB, free: 4.629 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.3893, allocations: 20 kB / 340.1 MB, free: 4.609 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.3908, allocations: 0.7769 MB / 340.8 MB, free: 3.832 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004943/0.3958, allocations: 3.068 MB / 343.9 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.3969, allocations: 0.6422 MB / 344.5 MB, free: 0 / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006938/0.3976, allocations: 418.4 kB / 345 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.456e-05/0.3977, allocations: 12.55 kB / 345 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/0.3977, allocations: 39.12 kB / 345 MB, free: 15.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 2.134e-06/0.3978, allocations: 0 / 345 MB, free: 15.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.004484/0.4022, allocations: 2.185 MB / 347.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.4023, allocations: 64.05 kB / 347.3 MB, free: 13.21 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006309/0.4029, allocations: 0.5068 MB / 347.8 MB, free: 12.7 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.647e-05/0.403, allocations: 37.7 kB / 347.8 MB, free: 12.65 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.4033, allocations: 395.4 kB / 348.2 MB, free: 12.26 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.4035, allocations: 248.4 kB / 348.4 MB, free: 12.01 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.4037, allocations: 134.6 kB / 348.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.4039, allocations: 378.8 kB / 348.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006019/0.4045, allocations: 309.9 kB / 349.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006766/0.4052, allocations: 425.1 kB / 349.6 MB, free: 10.74 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.4065, allocations: 0.7428 MB / 350.4 MB, free: 9.965 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.4066, allocations: 0 / 350.4 MB, free: 9.965 MB / 286.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00215/0.4087, allocations: 1.04 MB / 351.4 MB, free: 8.914 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.4087, allocations: 8 kB / 351.4 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.4088, allocations: 3.984 kB / 351.4 MB, free: 8.902 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005944/0.4094, allocations: 184.6 kB / 351.6 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008159/0.4102, allocations: 187.8 kB / 351.8 MB, free: 8.535 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00391/0.4141, allocations: 2.608 MB / 354.4 MB, free: 5.793 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006328/0.4148, allocations: 36.03 kB / 354.4 MB, free: 5.758 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.425e-05/0.4149, allocations: 35.92 kB / 354.5 MB, free: 5.723 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004726/0.4153, allocations: 221.7 kB / 354.7 MB, free: 5.496 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.4155, allocations: 75.16 kB / 354.8 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001674/0.4157, allocations: 86.17 kB / 354.9 MB, free: 5.332 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.4157, allocations: 8 kB / 354.9 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.092e-05/0.4157, allocations: 0 / 354.9 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.4157, allocations: 3.984 kB / 354.9 MB, free: 5.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.4168, allocations: 0.8378 MB / 355.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4168, allocations: 0 / 355.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006924/0.4175, allocations: 143.8 kB / 355.8 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006473/0.4182, allocations: 176.8 kB / 356 MB, free: 4.109 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.266e-05/0.4183, allocations: 27.97 kB / 356 MB, free: 4.082 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003936/0.4222, allocations: 2.616 MB / 358.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4222, allocations: 0 / 358.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00275/0.425, allocations: 1.381 MB / 360 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.4252, allocations: 136.3 kB / 360.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.961e-05/0.4253, allocations: 16.19 kB / 360.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005709/0.4259, allocations: 52.3 kB / 360.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.4261, allocations: 56.45 kB / 360.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.785e-05/0.4261, allocations: 35.98 kB / 360.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004734/0.4266, allocations: 350.9 kB / 360.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4266, allocations: 3.938 kB / 360.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009348/0.4276, allocations: 228 kB / 360.9 MB, free: 15.05 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003044/0.4279, allocations: 123.2 kB / 361 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.4302, allocations: 1.006 MB / 362 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4303, allocations: 0 / 362 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001391/0.4317, allocations: 0.6355 MB / 362.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008443/0.4325, allocations: 130.2 kB / 362.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003705/0.4362, allocations: 2.244 MB / 365 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007784/0.437, allocations: 0.9539 MB / 366 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003989/0.4374, allocations: 85.05 kB / 366.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.4376, allocations: 47.42 kB / 366.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4376, allocations: 0 / 366.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of Templates: time 0.01748/0.4551, allocations: 9.89 MB / 376 MB, free: 15.85 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)