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.0009923/0.0009921, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001055/0.001055, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.4 MB / 222.1 MB, free: 5.367 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.000474/0.0004741, allocations: 14.81 kB / 278.9 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2656, allocations: 47.59 MB / 326.5 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005274/0.2709, allocations: 4.94 MB / 331.4 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003428/0.2743, allocations: 1.395 MB / 332.8 MB, free: 12.36 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006232/0.275, allocations: 16.97 kB / 332.8 MB, free: 12.35 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00033/0.2753, allocations: 118.1 kB / 332.9 MB, free: 12.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006265/0.276, allocations: 233.1 kB / 333.2 MB, free: 12.05 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008046/0.2768, allocations: 232 kB / 333.4 MB, free: 11.86 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.2781, allocations: 1.118 MB / 334.5 MB, free: 11.18 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005161/0.2787, allocations: 304.6 kB / 334.8 MB, free: 10.99 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006122/0.2793, allocations: 366.6 kB / 335.2 MB, free: 10.74 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005333/0.2798, allocations: 454.1 kB / 335.6 MB, free: 10.29 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.838e-05/0.2799, allocations: 56 kB / 335.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000248/0.2802, allocations: 79.98 kB / 335.8 MB, free: 10.16 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001689/0.2804, allocations: 171.3 kB / 335.9 MB, free: 9.992 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.2806, allocations: 213.2 kB / 336.1 MB, free: 9.777 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009266/0.2815, allocations: 1.049 MB / 337.2 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.535e-06/0.2815, allocations: 4 kB / 337.2 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2815, allocations: 0 / 337.2 MB, free: 8.723 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.2816, allocations: 0 / 337.2 MB, free: 8.723 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.002232/0.2838, allocations: 1.154 MB / 338.3 MB, free: 7.52 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.2839, allocations: 12.03 kB / 338.3 MB, free: 7.508 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001926/0.2841, allocations: 102.8 kB / 338.4 MB, free: 7.406 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006515/0.2847, allocations: 496.3 kB / 338.9 MB, free: 6.883 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.891e-05/0.2848, allocations: 66 kB / 339 MB, free: 6.816 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.2849, allocations: 87.84 kB / 339.1 MB, free: 6.73 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.2865, allocations: 0.8805 MB / 340 MB, free: 5.836 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.2866, allocations: 4 kB / 340 MB, free: 5.832 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.782e-05/0.2867, allocations: 35.98 kB / 340 MB, free: 5.797 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.2867, allocations: 20 kB / 340 MB, free: 5.777 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.2882, allocations: 0.8081 MB / 340.8 MB, free: 4.969 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004644/0.2929, allocations: 3.088 MB / 343.9 MB, free: 1.758 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.2939, allocations: 0.654 MB / 344.6 MB, free: 1.098 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006483/0.2946, allocations: 426.3 kB / 345 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.694e-05/0.2947, allocations: 16.45 kB / 345 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.2947, allocations: 47.12 kB / 345 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of pre-optimization done (n=67): time 2.304e-06/0.2947, allocations: 0 / 345 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of matching and sorting (n=71): time 0.004325/0.2991, allocations: 2.248 MB / 347.3 MB, free: 14.31 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.2991, allocations: 60.06 kB / 347.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005702/0.2997, allocations: 0.4989 MB / 347.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.137e-05/0.2997, allocations: 41.7 kB / 347.9 MB, free: 13.68 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002543/0.3, allocations: 391.5 kB / 348.3 MB, free: 13.29 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.3002, allocations: 252.3 kB / 348.5 MB, free: 13.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.2e-05/0.3002, allocations: 16 kB / 348.5 MB, free: 13.03 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3004, allocations: 382.8 kB / 348.9 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005842/0.301, allocations: 313.9 kB / 349.2 MB, free: 12.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006511/0.3017, allocations: 441.1 kB / 349.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.3023, allocations: 366.9 kB / 350 MB, free: 11.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.3023, allocations: 0 / 350 MB, free: 11.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00191/0.3043, allocations: 1.056 MB / 351.1 MB, free: 10.45 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.3043, allocations: 4 kB / 351.1 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3043, allocations: 11.95 kB / 351.1 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005437/0.3049, allocations: 172.7 kB / 351.2 MB, free: 10.26 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007955/0.3057, allocations: 199.7 kB / 351.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003466/0.3092, allocations: 2.601 MB / 354 MB, free: 7.332 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005548/0.3097, allocations: 44.03 kB / 354.1 MB, free: 7.289 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.656e-05/0.3098, allocations: 32 kB / 354.1 MB, free: 7.258 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004445/0.3102, allocations: 217.6 kB / 354.3 MB, free: 7.035 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.3104, allocations: 71.23 kB / 354.4 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001956/0.3106, allocations: 86.17 kB / 354.5 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.3106, allocations: 12 kB / 354.5 MB, free: 6.863 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.687e-05/0.3106, allocations: 4 kB / 354.5 MB, free: 6.859 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3106, allocations: 7.922 kB / 354.5 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.3118, allocations: 0.8455 MB / 355.4 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.3118, allocations: 3.984 kB / 355.4 MB, free: 5.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006534/0.3125, allocations: 143.8 kB / 355.5 MB, free: 5.809 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004887/0.313, allocations: 184.8 kB / 355.7 MB, free: 5.625 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.193e-05/0.313, allocations: 28.05 kB / 355.7 MB, free: 5.598 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003654/0.3167, allocations: 2.597 MB / 358.3 MB, free: 2.867 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3167, allocations: 3.953 kB / 358.3 MB, free: 2.863 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/0.3194, allocations: 1.416 MB / 359.7 MB, free: 1.43 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/0.3197, allocations: 140.2 kB / 359.9 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.375e-05/0.3198, allocations: 20 kB / 359.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005449/0.3203, allocations: 59.95 kB / 359.9 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.3205, allocations: 52.58 kB / 360 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.515e-05/0.3206, allocations: 23.98 kB / 360 MB, free: 1.117 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005101/0.3211, allocations: 346.9 kB / 360.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3211, allocations: 0 / 360.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0009099/0.322, allocations: 232 kB / 360.6 MB, free: 0.5547 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002819/0.3223, allocations: 139.1 kB / 360.7 MB, free: 420 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.3245, allocations: 1.018 MB / 361.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3245, allocations: 0 / 361.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.3258, allocations: 0.6398 MB / 362.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007371/0.3265, allocations: 130.5 kB / 362.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/0.3299, allocations: 2.304 MB / 364.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00049/0.3304, allocations: 0.9577 MB / 365.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003721/0.3307, allocations: 85.05 kB / 365.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.3309, allocations: 51.42 kB / 365.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3309, allocations: 0 / 365.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of Templates: time 0.01611/0.347, allocations: 9.406 MB / 375.3 MB, free: 1.73 MB / 302.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)