Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.01169/0.01169, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001989/0.001989, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.518/1.518, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001262/0.001262, allocations: 59.92 kB / 326.6 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09927/0.1005, allocations: 46.61 MB / 373.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.2337/0.3343, allocations: 5.704 MB / 378.9 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00284/0.3371, allocations: 1.439 MB / 380.3 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004005/0.3376, allocations: 13.75 kB / 380.3 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003512/0.338, allocations: 156.5 kB / 380.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005263/0.3385, allocations: 285.3 kB / 380.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008048/0.3393, allocations: 359.6 kB / 381.1 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001413/0.3407, allocations: 1.237 MB / 382.4 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005653/0.3413, allocations: 426.1 kB / 382.8 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007617/0.3421, allocations: 455.4 kB / 383.2 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000654/0.3427, allocations: 0.5275 MB / 383.7 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001883/0.3429, allocations: 125.4 kB / 383.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003372/0.3433, allocations: 159.9 kB / 384 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.3435, allocations: 246.7 kB / 384.3 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000528/0.344, allocations: 0.5473 MB / 384.8 MB, free: 7.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001664/0.3457, allocations: 1.406 MB / 386.2 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3457, allocations: 0.6875 kB / 386.2 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3457, allocations: 0.5156 kB / 386.2 MB, free: 7.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.516e-05/0.3458, allocations: 2.312 kB / 386.2 MB, free: 7.207 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.00256/0.3483, allocations: 1.286 MB / 387.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3484, allocations: 9.312 kB / 387.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.3486, allocations: 105.4 kB / 387.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007629/0.3494, allocations: 0.5136 MB / 388.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.467e-05/0.3494, allocations: 58.88 kB / 388.2 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.3496, allocations: 83.92 kB / 388.3 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.3511, allocations: 0.8834 MB / 389.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.3512, allocations: 2.812 kB / 389.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.008e-05/0.3513, allocations: 41.83 kB / 389.2 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.3513, allocations: 20.09 kB / 389.2 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.3529, allocations: 0.7816 MB / 390 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005255/0.3581, allocations: 3.018 MB / 393 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.3592, allocations: 0.6511 MB / 393.7 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007129/0.36, allocations: 408.9 kB / 394.1 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.798e-05/0.3601, allocations: 14.89 kB / 394.1 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.3601, allocations: 48.62 kB / 394.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.985e-06/0.3601, allocations: 0 / 394.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=71): time 0.004498/0.3646, allocations: 2.187 MB / 396.3 MB, free: 1.801 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.3647, allocations: 59.75 kB / 396.4 MB, free: 1.738 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005723/0.3652, allocations: 0.5036 MB / 396.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.174e-05/0.3653, allocations: 45.77 kB / 396.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000204/0.3655, allocations: 389.9 kB / 397.3 MB, free: 1.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.3657, allocations: 254.6 kB / 397.6 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/0.3659, allocations: 138.3 kB / 397.7 MB, free: 0.875 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.366, allocations: 375.7 kB / 398.1 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006004/0.3666, allocations: 311.3 kB / 398.4 MB, free: 420 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000687/0.3673, allocations: 427.4 kB / 398.8 MB, free: 176 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/0.3689, allocations: 0.7711 MB / 399.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3689, allocations: 4 kB / 399.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00211/0.371, allocations: 1.034 MB / 400.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.881e-05/0.3711, allocations: 7.406 kB / 400.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3711, allocations: 2.25 kB / 400.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006072/0.3717, allocations: 184.4 kB / 400.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008386/0.3725, allocations: 182.3 kB / 401 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004081/0.3766, allocations: 2.864 MB / 403.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007335/0.3774, allocations: 38.66 kB / 403.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.532e-05/0.3775, allocations: 24.81 kB / 403.9 MB, free: 12.91 MB / 334.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.0005061/0.378, allocations: 225.2 kB / 404.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.3782, allocations: 74.86 kB / 404.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002069/0.3784, allocations: 81.44 kB / 404.2 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.3784, allocations: 11.75 kB / 404.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.486e-05/0.3785, allocations: 7.203 kB / 404.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.3785, allocations: 0 / 404.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.3798, allocations: 0.8344 MB / 405.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.188e-06/0.3798, allocations: 3.938 kB / 405.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007025/0.3805, allocations: 153.9 kB / 405.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000544/0.3811, allocations: 172.9 kB / 405.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.075e-05/0.3812, allocations: 27.42 kB / 405.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004155/0.3853, allocations: 2.851 MB / 408.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.3854, allocations: 3.938 kB / 408.3 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003314/0.3887, allocations: 1.401 MB / 409.7 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003664/0.3891, allocations: 135.4 kB / 409.8 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000209/0.3893, allocations: 17.06 kB / 409.9 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007051/0.39, allocations: 52.83 kB / 409.9 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.3902, allocations: 54.17 kB / 410 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.866e-05/0.3903, allocations: 23.58 kB / 410 MB, free: 8.398 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004803/0.3908, allocations: 357.2 kB / 410.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3908, allocations: 0 / 410.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001203/0.392, allocations: 222.4 kB / 410.5 MB, free: 8.16 MB / 334.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.0002772/0.3923, allocations: 132.2 kB / 410.7 MB, free: 8.047 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002698/0.395, allocations: 1.006 MB / 411.7 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.395, allocations: 1.375 kB / 411.7 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.3965, allocations: 0.6365 MB / 412.3 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.3975, allocations: 139.2 kB / 412.5 MB, free: 7.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003661/0.4012, allocations: 1.886 MB / 414.3 MB, free: 5.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00061/0.4018, allocations: 0.9577 MB / 415.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004226/0.4023, allocations: 85.05 kB / 415.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.4025, allocations: 51.42 kB / 415.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4025, allocations: 0 / 415.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of Templates: time 0.01969/0.4222, allocations: 10.57 MB / 426 MB, free: 9.887 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)